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;
|
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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue