Don't delete a costume when popped.

It will be deleted by Object::dereference if/when needed.
This commit is contained in:
Giulio Camuffo 2011-03-27 18:59:52 +02:00
parent c93da6d075
commit 18a62c16f4

View File

@ -801,7 +801,6 @@ void Actor::popCostume() {
freeCostumeChore(_costumeStack.back(), _mumbleCostume, _mumbleChore);
for (int i = 0; i < 10; i++)
freeCostumeChore(_costumeStack.back(), _talkCostume[i], _talkChore[i]);
delete _costumeStack.back();
_costumeStack.pop_back();
Costume *newCost;
if (_costumeStack.empty())