mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Fix #7674
This commit is contained in:
parent
231803c6ea
commit
a60726ce35
@ -344,6 +344,12 @@ namespace MWLua
|
||||
playerScripts->uiModeChanged(argId, false);
|
||||
}
|
||||
|
||||
void LuaManager::useItem(const MWWorld::Ptr& object, const MWWorld::Ptr& actor, bool force)
|
||||
{
|
||||
MWBase::Environment::get().getWorldModel()->registerPtr(object);
|
||||
mEngineEvents.addToQueue(EngineEvents::OnUseItem{ getId(actor), getId(object), force });
|
||||
}
|
||||
|
||||
void LuaManager::objectAddedToScene(const MWWorld::Ptr& ptr)
|
||||
{
|
||||
mObjectLists.objectAddedToScene(ptr); // assigns generated RefNum if it is not set yet.
|
||||
|
@ -77,10 +77,7 @@ namespace MWLua
|
||||
{
|
||||
mEngineEvents.addToQueue(EngineEvents::OnActivate{ getId(actor), getId(object) });
|
||||
}
|
||||
void useItem(const MWWorld::Ptr& object, const MWWorld::Ptr& actor, bool force) override
|
||||
{
|
||||
mEngineEvents.addToQueue(EngineEvents::OnUseItem{ getId(actor), getId(object), force });
|
||||
}
|
||||
void useItem(const MWWorld::Ptr& object, const MWWorld::Ptr& actor, bool force) override;
|
||||
void exteriorCreated(MWWorld::CellStore& cell) override
|
||||
{
|
||||
mEngineEvents.addToQueue(EngineEvents::OnNewExterior{ cell });
|
||||
|
Loading…
x
Reference in New Issue
Block a user