1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-28 19:21:04 +00:00

Fix incorrect validation in obj:moveInto

This commit is contained in:
Petr Mikheev 2023-08-19 13:08:30 +02:00
parent e5d5cbcdd1
commit 842e154d8a

@ -417,7 +417,7 @@ namespace MWLua
destPtr = dest.as<GObject>().ptr();
else
destPtr = LuaUtil::cast<Inventory<GObject>>(dest).mObj.ptr();
destPtr.getContainerStore(); // raises an error if there is no container store
destPtr.getClass().getContainerStore(destPtr); // raises an error if there is no container store
std::optional<DelayedRemovalFn> delayedRemovalFn = removeFn(ptr, count);
context.mLuaManager->addAction([item = object, count, cont = GObject(destPtr), delayedRemovalFn] {