summaryrefslogtreecommitdiff
path: root/src/dungeon.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-06-30 08:51:51 +0200
committerBardur Arantsson <bardur@scientician.net>2012-06-30 20:40:26 +0200
commit763a1c383895f5f04d025ba6ebf79aee9425df70 (patch)
treebaaed2501a0a9815ee95261d856661244128c682 /src/dungeon.c
parentf7e87bc98111f97ca489e1f13999058a7df8171e (diff)
Change spell_type to a semi-ADT
Diffstat (limited to 'src/dungeon.c')
-rw-r--r--src/dungeon.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dungeon.c b/src/dungeon.c
index ae8d6912..a74fed2c 100644
--- a/src/dungeon.c
+++ b/src/dungeon.c
@@ -15,6 +15,7 @@
#include <assert.h>
#include "quark.h"
+#include "spell_type.h"
#define TY_CURSE_CHANCE 100
#define DG_CURSE_CHANCE 50
@@ -801,9 +802,7 @@ bool_ decays(object_type *o_ptr)
static int process_lasting_spell(s16b music)
{
spell_type *spell = spell_at(-music);
-
- assert(spell->lasting_func != NULL);
- return spell->lasting_func();
+ return spell_type_produce_effect_lasting(spell);
}
static void gere_class_special()