diff options
author | ariel- <ariel-@users.noreply.github.com> | 2018-03-14 01:47:20 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2018-03-14 03:43:59 -0300 |
commit | 8e853a82cc2f404acfd091a6c251828e9e7aac6e (patch) | |
tree | 35ebbc58bb18eed7a75902b0b4a69ef5ecfd43ce /src | |
parent | cc231fd9985de62070edaa7e4cc1731f80049501 (diff) |
Scripts/Kalimdor: fix crash with Gordunni Trap
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Kalimdor/zone_feralas.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/scripts/Kalimdor/zone_feralas.cpp b/src/server/scripts/Kalimdor/zone_feralas.cpp index 49198030c57..8a7baacc796 100644 --- a/src/server/scripts/Kalimdor/zone_feralas.cpp +++ b/src/server/scripts/Kalimdor/zone_feralas.cpp @@ -166,12 +166,9 @@ class spell_gordunni_trap : public SpellScriptLoader void HandleDummy() { - Unit* caster = GetCaster(); + GameObject* caster = GetGObjCaster(); if (GameObject* chest = caster->SummonGameObject(urand(0, 1) ? GO_GORDUNNI_DIRT_MOUND_1 : GO_GORDUNNI_DIRT_MOUND_2, *caster, QuaternionData(), 0)) - { chest->SetSpellId(GetSpellInfo()->Id); - caster->RemoveGameObject(chest, false); - } } void Register() override |