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:
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] {
|
||||
|
Loading…
x
Reference in New Issue
Block a user