projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9ed379
)
Fix inventory segfault when rollback recording is disabled
author
Perttu Ahola
<celeron55@gmail.com>
Sat, 28 Jul 2012 11:44:18 +0000
(14:44 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Sat, 28 Jul 2012 11:44:18 +0000
(14:44 +0300)
src/inventorymanager.cpp
patch
|
blob
|
history
diff --git
a/src/inventorymanager.cpp
b/src/inventorymanager.cpp
index 85668d6455f6dd344a9872d5ca8a3153e0e3f66d..7fc8c8ce4539c3f288ae565be993421ea9d24d0d 100644
(file)
--- a/
src/inventorymanager.cpp
+++ b/
src/inventorymanager.cpp
@@
-355,7
+355,7
@@
void IMoveAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame
/*
Record rollback information
*/
- if(!ignore_rollback)
+ if(!ignore_rollback
&& gamedef->rollback()
)
{
IRollbackReportSink *rollback = gamedef->rollback();
@@
-628,7
+628,7
@@
void IDropAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame
/*
Record rollback information
*/
- if(!ignore_src_rollback)
+ if(!ignore_src_rollback
&& gamedef->rollback()
)
{
IRollbackReportSink *rollback = gamedef->rollback();