diff options
author | kwolekr <kwolekr@minetest.net> | 2015-08-15 14:45:44 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-08-15 14:51:38 -0400 |
commit | 0ba1cf82033a810dd2e6178e23794bb135ede46a (patch) | |
tree | cdfec5c0932014b1564566506d4cbd0b0a1e127d | |
parent | 7238df4c5952ed9eec491f424b8ca4b790cf7558 (diff) | |
download | minetest-0ba1cf82033a810dd2e6178e23794bb135ede46a.tar.gz minetest-0ba1cf82033a810dd2e6178e23794bb135ede46a.tar.bz2 minetest-0ba1cf82033a810dd2e6178e23794bb135ede46a.zip |
Rollback: Fail on bad precondition instead of causing assertion error
-rw-r--r-- | src/rollback_interface.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rollback_interface.cpp b/src/rollback_interface.cpp index 028bd0424..b3f457029 100644 --- a/src/rollback_interface.cpp +++ b/src/rollback_interface.cpp @@ -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) { |