From 9fd59f696342df8a6fb5ea999a8cec406d5244f8 Mon Sep 17 00:00:00 2001 From: MillhioreBT Date: Sat, 27 Nov 2021 01:40:57 -0400 Subject: [PATCH] The equivalent of #3609 but for the onItemMoved event --- src/game.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game.cpp b/src/game.cpp index 8f6e1db8fb..75c2b78e20 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1144,6 +1144,11 @@ ReturnValue Game::internalMoveItem(Cylinder* fromCylinder, Cylinder* toCylinder, } ret = toCylinder->queryAdd(index, *item, count, flags); + + if (actorPlayer && fromPos && toPos) { + g_events->eventPlayerOnItemMoved(actorPlayer, toItem, count, *toPos, *fromPos, toCylinder, fromCylinder); + } + toItem = nullptr; } }