Rollback: Fail on bad precondition instead of causing assertion error

This commit is contained in:
kwolekr 2015-08-15 14:45:44 -04:00
parent 7238df4c59
commit 0ba1cf8203
1 changed files with 1 additions and 0 deletions

View File

@ -210,6 +210,7 @@ bool RollbackAction::applyRevert(Map *map, InventoryManager *imgr, IGameDef *gam
<< inventory_index << " too large in "
<< "inventory list \"" << inventory_list << "\" in "
<< inventory_location << std::endl;
return false;
}
// If item was added, take away item, otherwise add removed item
if (inventory_add) {