Skip to content

Commit

Permalink
Rollback: Fail on bad precondition instead of causing assertion error
Browse files Browse the repository at this point in the history
  • 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
Original file line number Diff line number Diff line change
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.