diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-02-01 22:38:50 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-02-03 20:21:38 +0100 |
commit | 48d44a13e525375ef289ef577e5fc6abf1735e19 (patch) | |
tree | fe40f14217fa23dcec40e27218ff8aa786be7e8d /src/utils | |
parent | 1e562bdd132c4166ca4de2bdb3f241adaa9a7149 (diff) | |
download | manaserv-48d44a13e525375ef289ef577e5fc6abf1735e19.tar.gz manaserv-48d44a13e525375ef289ef577e5fc6abf1735e19.tar.xz manaserv-48d44a13e525375ef289ef577e5fc6abf1735e19.zip |
Clear the gid flags before processing them
Also read the gids as unsigned integers since that's how Tiled writes them
to prevent the number going negative when the highest flag is used.
Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/xml.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp index 5d579dd..91ebb44 100644 --- a/src/utils/xml.cpp +++ b/src/utils/xml.cpp @@ -97,7 +97,7 @@ namespace XML xmlChar *prop = xmlGetProp(node, BAD_CAST name); if (prop) { - ret = atoi((char*) prop); + ret = atol((char*) prop); xmlFree(prop); } |