Rollback: Fail on bad precondition instead of causing assertion error
This commit is contained in:
parent
7238df4c59
commit
0ba1cf8203
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue