diff options
author | Bardur Arantsson <bardur@scientician.net> | 2010-01-11 07:53:03 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2010-01-11 07:53:03 +0100 |
commit | dbf70ec83792cf3ba5e9a5c27c8c7b4babc670d9 (patch) | |
tree | 3e2cf13c6610a845f1589019635150ccc54cd11c /src/spells.pkg | |
parent | b499eedd1d85386b41ff1d9e3995170c2add2924 (diff) |
Fix LUA errors when hitting escape to cancel choosing a spell.
Since get_school_spell returns -1 when no spell is chosen, it must return s32b rather than u32b.
Thanks to Noel Maddy for this fix.
Diffstat (limited to 'src/spells.pkg')
-rw-r--r-- | src/spells.pkg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spells.pkg b/src/spells.pkg index 65081aff..d1f50566 100644 --- a/src/spells.pkg +++ b/src/spells.pkg @@ -2462,7 +2462,7 @@ extern s32b lua_spell_device_chance(s32b chance, int level, int base_level); * If no spell is chosen, -1 is returned. * @note (see file cmd5.c) */ -extern u32b get_school_spell(cptr do_what, cptr check_fct, s16b force_book); +extern s32b get_school_spell(cptr do_what, cptr check_fct, s16b force_book); /** @name Last Teleportation * @brief Coordinates of last successful teleportation |