diff options
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r-- | src/map/itemdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index d9cb429..3b49b50 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -111,8 +111,8 @@ int itemdb_searchrandomid(int flags) if(count > 0) { for(i=0;i<1000;i++) { - index = rand()%count; - if( rand()%1000000 < list[index].per) { + index = MRAND(count); + if( MRAND(1000000) < list[index].per) { nameid = list[index].nameid; break; } |