mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix inventory segfault when rollback recording is disabled
This commit is contained in:
parent
c9ed379e39
commit
fd7ec2da91
1 changed files with 2 additions and 2 deletions
|
@ -355,7 +355,7 @@ void IMoveAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame
|
||||||
/*
|
/*
|
||||||
Record rollback information
|
Record rollback information
|
||||||
*/
|
*/
|
||||||
if(!ignore_rollback)
|
if(!ignore_rollback && gamedef->rollback())
|
||||||
{
|
{
|
||||||
IRollbackReportSink *rollback = gamedef->rollback();
|
IRollbackReportSink *rollback = gamedef->rollback();
|
||||||
|
|
||||||
|
@ -628,7 +628,7 @@ void IDropAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame
|
||||||
/*
|
/*
|
||||||
Record rollback information
|
Record rollback information
|
||||||
*/
|
*/
|
||||||
if(!ignore_src_rollback)
|
if(!ignore_src_rollback && gamedef->rollback())
|
||||||
{
|
{
|
||||||
IRollbackReportSink *rollback = gamedef->rollback();
|
IRollbackReportSink *rollback = gamedef->rollback();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue