summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lua_bind.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua_bind.cc b/src/lua_bind.cc
index ec44ce4e..de16ad42 100644
--- a/src/lua_bind.cc
+++ b/src/lua_bind.cc
@@ -13,6 +13,7 @@
#include "angband.h"
#include <assert.h>
+#include <functional>
#include "spell_type.h"
#include "range.h"
@@ -45,7 +46,7 @@ s32b lua_get_level(spell_type *spell, s32b lvl, s32b max, s32b min, s32b bonus)
return lvl;
}
-static s32b get_level_device(spell_type *spell, s32b max, s32b min, s32b device_skill)
+/* static */ s32b get_level_device(spell_type *spell, s32b max, s32b min, s32b device_skill, std::function<s32b(spell_type *, s32b, s32b, s32b, s32b)> lua_get_level = lua_get_level)
{
/* No max specified ? assume 50 */
if (max <= 0) {