Fixed jump_zero for conditions over INT32_MAX

Thanks to @Atemo
This commit is contained in:
Lemongrass3110 2020-02-17 22:50:19 +01:00
parent 390eb9772a
commit d165c19b73

View File

@ -14975,8 +14975,7 @@ BUILDIN_FUNC(checkequipedcard)
BUILDIN_FUNC(jump_zero) BUILDIN_FUNC(jump_zero)
{ {
int sel; int64 sel=script_getnum64(st,2);
sel=script_getnum(st,2);
if(!sel) { if(!sel) {
int pos; int pos;
if( !data_islabel(script_getdata(st,3)) ){ if( !data_islabel(script_getdata(st,3)) ){