Merge [SD2]

r1268 Check if faction pointer are valid before use. Patch by balrok
r1269 Clean up one source file and apply code style. Patch by jotapdiez
r1270 Fix code causing crash after log in, part revert rev 1267
r1271 Revert previous commit, and instead fix typo :) Patch by Apoc

--HG--
branch : trunk
This commit is contained in:
Kudlaty
2009-08-14 20:12:58 +02:00
parent 4252c4cef0
commit 686cd6eeff
3 changed files with 83 additions and 53 deletions

View File

@@ -215,7 +215,7 @@ SpellEntry const* ScriptedAI::SelectSpell(Unit* pTarget, int32 uiSchool, int32 u
//Using the extended script system we first create a list of viable spells
SpellEntry const* apSpell[CREATURE_MAX_SPELLS];
memset(apSpell, 0, sizeof(SpellEntry)*CREATURE_MAX_SPELLS);
memset(apSpell, 0, sizeof(SpellEntry*)*CREATURE_MAX_SPELLS);
uint32 uiSpellCount = 0;