missing includes for spell.cpp

bugfix memset in create_mage
This commit is contained in:
Enno Rehling 2005-10-08 16:14:15 +00:00
parent 2602a8db67
commit fed680604a
2 changed files with 3 additions and 1 deletions

View File

@ -339,7 +339,7 @@ create_mage(unit * u, magic_t mtyp)
a->data.v = mage; a->data.v = mage;
} else { } else {
mage = a->data.v; mage = a->data.v;
memset(&mage, 0, sizeof(sc_mage)); memset(mage, 0, sizeof(sc_mage));
} }
mage->magietyp = mtyp; mage->magietyp = mtyp;

View File

@ -4,7 +4,9 @@
// kernel includes // kernel includes
#include <kernel/magic.h> #include <kernel/magic.h>
#include <kernel/region.h>
#include <kernel/spell.h> #include <kernel/spell.h>
#include <kernel/unit.h>
// util includes // util includes
#include <util/functions.h> #include <util/functions.h>