Fix build (gcc) and fix warnings
This commit is contained in:
1 parent
6870ee5848
commit
1e246cb66c
12 files changed
+44
-19
No files matched your search
@@ -1084,7 +1084,7 @@ class spell_gen_seaforium_blast : public SpellScriptLoader
|
||||
// but in effect handling OriginalCaster can become NULL
|
||||
if (Unit* originalCaster = GetOriginalCaster())
|
||||
if (GameObject* go = GetHitGObj())
|
||||
if (GetHitGObj()->GetGOInfo()->type == GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING)
|
||||
if (go->GetGOInfo()->type == GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING)
|
||||
originalCaster->CastSpell(originalCaster, SPELL_PLANT_CHARGES_CREDIT_ACHIEVEMENT, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user