Pārlūkot izejas kodu

Adds missing args for round/ceil/floor (#4899)

* Fixes #4898.
* Only missing one integer in parameter in BUILDIN_DEF2, already ready to read in the definition of the function.
Thanks to @Kreustoo!
Kreustoo 5 gadi atpakaļ
vecāks
revīzija
d1719f670f
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      src/map/script.cpp

+ 3 - 3
src/map/script.cpp

@@ -25291,9 +25291,9 @@ struct script_function buildin_func[] = {
 
 
 	BUILDIN_DEF(getequiprefinecost,"iii?"),
-	BUILDIN_DEF2(round, "round", "i"),
-	BUILDIN_DEF2(round, "ceil", "i"),
-	BUILDIN_DEF2(round, "floor", "i"),
+	BUILDIN_DEF2(round, "round", "ii"),
+	BUILDIN_DEF2(round, "ceil", "ii"),
+	BUILDIN_DEF2(round, "floor", "ii"),
 	BUILDIN_DEF(getequiptradability, "i?"),
 	BUILDIN_DEF(mail, "isss*"),
 	BUILDIN_DEF(open_roulette,"?"),