Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rollback: Fail on bad precondition instead of causing assertion error
  • Loading branch information
kwolekr committed Aug 15, 2015
1 parent 7238df4 commit 0ba1cf8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rollback_interface.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 0ba1cf8

Please sign in to comment.