- Fixed grouprandomitem; always produced negative item IDs. (bugreport:5529)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15822 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
0495f532c5
commit
00aa83d419
@ -5928,7 +5928,7 @@ BUILDIN_FUNC(grouprandomitem)
|
|||||||
int group;
|
int group;
|
||||||
|
|
||||||
group = script_getnum(st,2);
|
group = script_getnum(st,2);
|
||||||
script_pushint(st,-itemdb_searchrandomid(group));
|
script_pushint(st,itemdb_searchrandomid(group));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user