forked from github/server
missing includes for spell.cpp
bugfix memset in create_mage
This commit is contained in:
parent
2602a8db67
commit
fed680604a
|
@ -339,7 +339,7 @@ create_mage(unit * u, magic_t mtyp)
|
|||
a->data.v = mage;
|
||||
} else {
|
||||
mage = a->data.v;
|
||||
memset(&mage, 0, sizeof(sc_mage));
|
||||
memset(mage, 0, sizeof(sc_mage));
|
||||
}
|
||||
|
||||
mage->magietyp = mtyp;
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
|
||||
// kernel includes
|
||||
#include <kernel/magic.h>
|
||||
#include <kernel/region.h>
|
||||
#include <kernel/spell.h>
|
||||
#include <kernel/unit.h>
|
||||
|
||||
// util includes
|
||||
#include <util/functions.h>
|
||||
|
|
Loading…
Reference in New Issue