diff options
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp index 57cd5a97..c66a85c9 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -179,7 +179,7 @@ class ContainsGidFunctor bool operator() (Tileset* set) { return (set->getFirstGid() <= gid && - gid - set->getFirstGid() < (int)set->spriteset.size()); + gid - set->getFirstGid() < (int)set->size()); } int gid; } containsGid; @@ -200,7 +200,7 @@ Map::getTileWithGid(int gid) Tileset *set = getTilesetWithGid(gid); if (set) { - return set->spriteset[gid - set->getFirstGid()]; + return set->get(gid - set->getFirstGid()); } return NULL; |