fix OnBeforeCreateInstanceScript() hook (#182)

This commit is contained in:
sudlud
2024-07-03 23:01:03 +02:00
committed by GitHub
parent c652ee8e1a
commit e00386fa5b

View File

@@ -237,9 +237,10 @@ class Eluna_AllMapScript : public AllMapScript
public: public:
Eluna_AllMapScript() : AllMapScript("Eluna_AllMapScript") { } 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 void OnDestroyInstance(MapInstanced* /*mapInstanced*/, Map* map) override