From 686cd6eeffdad89e24407bbb816f48997cf3bb53 Mon Sep 17 00:00:00 2001 From: Kudlaty Date: Fri, 14 Aug 2009 20:12:58 +0200 Subject: 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 --- src/bindings/scripts/include/sc_creature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bindings/scripts/include') diff --git a/src/bindings/scripts/include/sc_creature.cpp b/src/bindings/scripts/include/sc_creature.cpp index fe81a68112f..1d423574f42 100644 --- a/src/bindings/scripts/include/sc_creature.cpp +++ b/src/bindings/scripts/include/sc_creature.cpp @@ -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; -- cgit v1.2.3