Issue information

Issue ID
#3522
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Aug 22, 2009 19:10
Last Post
Hercules Elf Bot
Aug 22, 2009 19:10
Confirmation
N/A

Hercules Elf Bot - Aug 22, 2009 19:10

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

this check at instance_init prevents instances to get reinitialized:
CODE
    if( instance[instance_id].state != INSTANCE_IDLE )
    {
        ShowError("instance_init: instance already initialited.\n");
        return;
    }


so the state must be set to INSTANCE_IDLE before calling the function at npc.c(3262):
CODE
    for( i = 0; i < ARRAYLENGTH(instance); ++i )
        if( instance[i].instance_id ) {
            instance[i].state = INSTANCE_IDLE;
            instance_init(instance[i].instance_id);
        }