Globally find & replace InstanceScript* GetInstanceData_InstanceMapScript(Map* pMap) -> InstanceScript* GetInstanceScript(InstanceMap* pMap) const, this makes sure instance scripts get initialized properly and prevents crashes in scripts.

NOTE: this either breaks or fixes crlf, have no time to check now.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-08-11 21:52:44 +02:00
parent f630c5ad71
commit d5270f9e0d
40 changed files with 40 additions and 40 deletions
@@ -37,7 +37,7 @@ class instance_sethekk_halls : public InstanceMapScript
public:
instance_sethekk_halls() : InstanceMapScript("instance_sethekk_halls", 556) { }
InstanceScript* GetInstanceData_InstanceMapScript(Map* pMap)
InstanceScript* GetInstanceScript(InstanceMap* pMap) const
{
return new instance_sethekk_halls_InstanceMapScript(pMap);
}
@@ -43,7 +43,7 @@ class instance_shadow_labyrinth : public InstanceMapScript
public:
instance_shadow_labyrinth() : InstanceMapScript("instance_shadow_labyrinth", 555) { }
InstanceScript* GetInstanceData_InstanceMapScript(Map* pMap)
InstanceScript* GetInstanceScript(InstanceMap* pMap) const
{
return new instance_shadow_labyrinth_InstanceMapScript(pMap);
}