From fed680604a11b1d75431922a640b9f364802ecb5 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 8 Oct 2005 16:14:15 +0000 Subject: [PATCH] missing includes for spell.cpp bugfix memset in create_mage --- src/common/kernel/magic.c | 2 +- src/eressea/lua/spell.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/kernel/magic.c b/src/common/kernel/magic.c index e6ba65bd2..49132c212 100644 --- a/src/common/kernel/magic.c +++ b/src/common/kernel/magic.c @@ -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; diff --git a/src/eressea/lua/spell.cpp b/src/eressea/lua/spell.cpp index 822308422..dbc3728f3 100644 --- a/src/eressea/lua/spell.cpp +++ b/src/eressea/lua/spell.cpp @@ -4,7 +4,9 @@ // kernel includes #include +#include #include +#include // util includes #include