diff options
| author | jackpoz <giacomopoz@gmail.com> | 2014-09-25 22:28:20 +0200 | 
|---|---|---|
| committer | jackpoz <giacomopoz@gmail.com> | 2014-09-25 22:28:20 +0200 | 
| commit | 79b9ca4a58175bcbfe859446dbb36ba4b30216b9 (patch) | |
| tree | d423f9e3af5bf47966f14d250347d969d337f555 /src/server/game/Instances/InstanceScript.h | |
| parent | 16a884d999d17290955f3c2721b78a13c8795293 (diff) | |
Scripts/Misc: Make InstanceScript::Initialize() obsolete
Move all InstanceScript initialization code from Initialize() to the constructor.
InstanceScript::Initialize() is now obsolete, please don't use it anymore. The only reason it's still in the sources is for backward compatibility.
Diffstat (limited to 'src/server/game/Instances/InstanceScript.h')
| -rw-r--r-- | src/server/game/Instances/InstanceScript.h | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Instances/InstanceScript.h b/src/server/game/Instances/InstanceScript.h index 24df397bf46..4b5a461418d 100644 --- a/src/server/game/Instances/InstanceScript.h +++ b/src/server/game/Instances/InstanceScript.h @@ -143,6 +143,8 @@ class InstanceScript : public ZoneScript          Map* instance;          // On creation, NOT load. +        // PLEASE INITIALIZE FIELDS IN THE CONSTRUCTOR INSTEAD !!! +        // KEEPING THIS METHOD ONLY FOR BACKWARD COMPATIBILITY !!!          virtual void Initialize() { }          // On load  | 
