Fixed instance idle timeout
Fixed instances of going into idle mode when there were still users left in the instance. Thanks to @Darkelfen for reporting it. Fixes #1412.
This commit is contained in:
parent
e5a197ad70
commit
4744ee0731
@ -795,7 +795,7 @@ int instance_delusers(unsigned short instance_id)
|
||||
return 1;
|
||||
|
||||
// If no one is in the instance, start the idle timer
|
||||
for(i = 0; im->map[i]->m && i > im->cnt_map; i++)
|
||||
for(i = 0; i < im->cnt_map && im->map[i]->m; i++)
|
||||
if(map[im->map[i]->m].users > 1) // We check this before the actual map.users are updated, hence the 1
|
||||
idle++;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user