mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 06:39:42 +00:00
Merge branch 'fix_moveinto' into 'master'
Fix incorrect validation in obj:moveInto See merge request OpenMW/openmw!3359
This commit is contained in:
commit
bfb2ae7948
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue