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
@@ -33,7 +33,7 @@ class instance_culling_of_stratholme : public InstanceMapScript
public:
instance_culling_of_stratholme() : InstanceMapScript("instance_culling_of_stratholme", 595) { }
InstanceScript* GetInstanceData_InstanceMapScript(Map* pMap)
InstanceScript* GetInstanceScript(InstanceMap* pMap) const
{
return new instance_culling_of_stratholme_InstanceMapScript(pMap);
}
@@ -66,7 +66,7 @@ class instance_dark_portal : public InstanceMapScript
public:
instance_dark_portal() : InstanceMapScript("instance_dark_portal", 269) { }
InstanceScript* GetInstanceData_InstanceMapScript(Map* pMap)
InstanceScript* GetInstanceScript(InstanceMap* pMap) const
{
return new instance_dark_portal_InstanceMapScript(pMap);
}
@@ -42,7 +42,7 @@ class instance_old_hillsbrad : public InstanceMapScript
public:
instance_old_hillsbrad() : InstanceMapScript("instance_old_hillsbrad", 560) { }
InstanceScript* GetInstanceData_InstanceMapScript(Map* pMap)
InstanceScript* GetInstanceScript(InstanceMap* pMap) const
{
return new instance_old_hillsbrad_InstanceMapScript(pMap);
}