Explorar o código

Fixed msvc warning casting int to bool in getequiprefinecost (#2429)

* Fixes #2428.
Thanks to @vstumpf and @Haikenz!
Vincent Stumpf %!s(int64=7) %!d(string=hai) anos
pai
achega
70f1d86404
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/map/script.cpp

+ 1 - 1
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;
 }