Jump to content

Patch - Help


Guest carlos4899

Recommended Posts

Index: include/sc_creature.cpp <-- this is the file to patch
===================================================================
--- include/sc_creature.cpp    (revision 1800)
+++ include/sc_creature.cpp    (working copy)
@@ -194,7 +194,7 @@ <-- these are lines to patch, look around here or use search

    //Using the extended script system we first create a list of viable spells
    SpellEntry const* apSpell[4];
-    memset(apSpell, 0, sizeof(SpellEntry)*4);  <--  [-] at the start means remove this line
+    memset(apSpell, 0, sizeof(SpellEntry*)*4); <--  [+] at the start means add this line

    uint32 uiSpellCount = 0;

That's about it.

Link to comment
Share on other sites

Index: include/sc_creature.cpp [b][u]<-- this is the file to patch[/u][/b]
===================================================================
--- include/sc_creature.cpp    (revision 1800)
+++ include/sc_creature.cpp    (working copy)
@@ -194,7 +194,7 @@ [b][u]<-- these are lines to patch, look around here or use search[/u][/b]

    //Using the extended script system we first create a list of viable spells
    SpellEntry const* apSpell[4];
-    memset(apSpell, 0, sizeof(SpellEntry)*4); [b][u] <--  [-] at the start means remove this line[/u][/b]
+    memset(apSpell, 0, sizeof(SpellEntry*)*4); [b][u]<--  [+] at the start means add this line[/u][/b]
    uint32 uiSpellCount = 0;

That's about it.

just to make it more clear

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use