Skip to content
Snippets Groups Projects
Commit 0ba1cf82 authored by kwolekr's avatar kwolekr
Browse files

Rollback: Fail on bad precondition instead of causing assertion error

parent 7238df4c
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment