aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/scripts/include
diff options
context:
space:
mode:
authorKudlaty <none@none>2009-08-14 20:12:58 +0200
committerKudlaty <none@none>2009-08-14 20:12:58 +0200
commit686cd6eeffdad89e24407bbb816f48997cf3bb53 (patch)
tree1d589c6294f91a8654651f201cfc37e6ae5d1427 /src/bindings/scripts/include
parent4252c4cef0513397101203f46b916b21e80d7cd8 (diff)
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
Diffstat (limited to 'src/bindings/scripts/include')
-rw-r--r--src/bindings/scripts/include/sc_creature.cpp2
1 files changed, 1 insertions, 1 deletions
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;