summaryrefslogtreecommitdiff
path: root/src/rollback_interface.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-08-15 14:45:44 -0400
committerkwolekr <kwolekr@minetest.net>2015-08-15 14:51:38 -0400
commit0ba1cf82033a810dd2e6178e23794bb135ede46a (patch)
treecdfec5c0932014b1564566506d4cbd0b0a1e127d /src/rollback_interface.cpp
parent7238df4c5952ed9eec491f424b8ca4b790cf7558 (diff)
downloadminetest-0ba1cf82033a810dd2e6178e23794bb135ede46a.tar.gz
minetest-0ba1cf82033a810dd2e6178e23794bb135ede46a.tar.bz2
minetest-0ba1cf82033a810dd2e6178e23794bb135ede46a.zip
Rollback: Fail on bad precondition instead of causing assertion error
Diffstat (limited to 'src/rollback_interface.cpp')
-rw-r--r--src/rollback_interface.cpp1
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) {