Skip to content

Commit 0ba1cf8

Browse files
committedAug 15, 2015
Rollback: Fail on bad precondition instead of causing assertion error
1 parent 7238df4 commit 0ba1cf8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/rollback_interface.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ bool RollbackAction::applyRevert(Map *map, InventoryManager *imgr, IGameDef *gam
210210
<< inventory_index << " too large in "
211211
<< "inventory list \"" << inventory_list << "\" in "
212212
<< inventory_location << std::endl;
213+
return false;
213214
}
214215
// If item was added, take away item, otherwise add removed item
215216
if (inventory_add) {

0 commit comments

Comments
 (0)
Please sign in to comment.