From 31544d2b6973931be7fdec898ea3672bea831de2 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 30 Aug 2012 17:37:27 -0700 Subject: Fix compiler errors of C++ conversion --- src/map/magic-interpreter.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/map/magic-interpreter.hpp') diff --git a/src/map/magic-interpreter.hpp b/src/map/magic-interpreter.hpp index e040975..21e8d39 100644 --- a/src/map/magic-interpreter.hpp +++ b/src/map/magic-interpreter.hpp @@ -226,7 +226,7 @@ typedef struct effect struct effect *true_branch, *false_branch; } e_if; expr_t *e_sleep; /* sleep time */ - unsigned char *e_script; + const ScriptCode *e_script; struct { int id; @@ -497,4 +497,8 @@ typedef struct effect_t *body; } proc_t; +// must be called after itemdb initialisation +int magic_init(const char *); +void spell_update_location (invocation_t * invocation); + #endif /* !defined (MAGIC_INTERPRETER_H) */ -- cgit v1.2.3-70-g09d2