From 70f1d864046027327ea1c316bddb835e2d6478bf Mon Sep 17 00:00:00 2001 From: Vincent Stumpf Date: Tue, 19 Sep 2017 07:15:42 -0700 Subject: [PATCH] Fixed msvc warning casting int to bool in getequiprefinecost (#2429) * Fixes #2428. Thanks to @vstumpf and @Haikenz! --- src/map/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/script.cpp b/src/map/script.cpp index 73915808dc..2f326280b4 100644 --- a/src/map/script.cpp +++ b/src/map/script.cpp @@ -23590,7 +23590,7 @@ BUILDIN_FUNC(getequiprefinecost) { weapon_lv = REFINE_TYPE_SHADOW; } - script_pushint(st, status_get_refine_cost(weapon_lv, type, info)); + script_pushint(st, status_get_refine_cost(weapon_lv, type, info != 0)); return SCRIPT_CMD_SUCCESS; }