Issue information

Issue ID
#3001
Status
Duplicate
Severity
None
Started
Hercules Elf Bot
Apr 22, 2009 15:02
Last Post
Hercules Elf Bot
Apr 22, 2009 15:02
Confirmation
N/A

Hercules Elf Bot - Apr 22, 2009 15:02

Originally posted by [b]s2NaTaNs2[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=3001

QUOTE
int map_get_new_object_id(void)
{
static int last_object_id = MIN_FLOORITEM - 1;
int i;

// find a free id
i = last_object_id + 1;
while( i != last_object_id )
{
if( i == MAX_FLOORITEM )
i = MIN_FLOORITEM;

if( idb_get(id_db, i) == NULL )
break;

++i;
}

if( i == last_object_id )
{
ShowError("map_addobject: no free object id!\n");
return 0;
}

// update cursor
last_object_id = i;

return i;
}


Posted a question in Brazilian Support and told me to post it here.
My server map showed continuous veses repeated this error while he was held:

[Error]: map_addobject: no free object id!
[Error]: map_addobject: no free object id!
[Error]: map_addobject: no free object id!
[Error]: map_addobject: no free object id!
[Error]: map_addobject: no free object id!
[Error]: map_addobject: no free object id!
[Error]: map_addobject: no free object id!


My Map server has been set locks.