diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:55 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:55 +0100 |
commit | 692699f064b2d792b61a5aa448b6844e8c713248 (patch) | |
tree | 9e25e80c55c3e2fea86de4d7ccfd037fe64aabc4 /src/lua_bind.hpp | |
parent | e63216657a9a2711483517e8eb5bed46215ae6dd (diff) |
Change spell_chance_device parameter to use spell_type pointer
There's no need to go through the extra indirection of the spell list.
Diffstat (limited to 'src/lua_bind.hpp')
-rw-r--r-- | src/lua_bind.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua_bind.hpp b/src/lua_bind.hpp index 3ac8e2bc..f4991bd3 100644 --- a/src/lua_bind.hpp +++ b/src/lua_bind.hpp @@ -1,9 +1,10 @@ #pragma once #include "h-basic.h" +#include "spell_type_fwd.h" /** Calculate spell failure rate for a device, i.e. a wand or staff. */ -extern s32b spell_chance_device(s32b s); +extern s32b spell_chance_device(spell_type *spell_ptr); /** Calculate spell failure rate for a spell book. */ extern s32b spell_chance_book(s32b s); |