diff --git a/src/World.cpp b/src/World.cpp index cac8ef2..3c6652f 100755 --- a/src/World.cpp +++ b/src/World.cpp @@ -121,9 +121,9 @@ World::applyMovement(std::shared_ptr sprite, int elapsed) { void World::think(int elapsed) { for (auto it = mCharacters.begin(); it != mCharacters.end(); ) { - if ((*it)->getDelete() && (*it)->getCategory() != Sprite::CATEGORY_ACTOR) { + if ((*it)->getDelete()) { mCharacters.erase(it); - auto& d = mDrawables[(*it)->getCategory()]; + auto& d = mDrawables[Sprite::CATEGORY_ACTOR]; d.erase(std::find(d.begin(), d.end(), *it)); } else {