Skip to content

Commit

Permalink
fix OnBeforeCreateInstanceScript() hook (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudlud committed Jul 3, 2024
1 parent c652ee8 commit e00386f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ElunaLuaEngine_SC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,10 @@ class Eluna_AllMapScript : public AllMapScript
public:
Eluna_AllMapScript() : AllMapScript("Eluna_AllMapScript") { }

void OnBeforeCreateInstanceScript(InstanceMap* instanceMap, InstanceScript* instanceData, bool /*load*/, std::string /*data*/, uint32 /*completedEncounterMask*/) override
void OnBeforeCreateInstanceScript(InstanceMap* instanceMap, InstanceScript** instanceData, bool /*load*/, std::string /*data*/, uint32 /*completedEncounterMask*/) override
{
instanceData = sEluna->GetInstanceData(instanceMap);
if (instanceData)
*instanceData = sEluna->GetInstanceData(instanceMap);
}

void OnDestroyInstance(MapInstanced* /*mapInstanced*/, Map* map) override
Expand Down

0 comments on commit e00386f

Please sign in to comment.