mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
fix OnBeforeCreateInstanceScript() hook (#182)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user