Issue information

Issue ID
#3973
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Dec 25, 2009 18:44
Last Post
Hercules Elf Bot
Dec 25, 2009 18:44
Confirmation
N/A

Hercules Elf Bot - Dec 25, 2009 18:44

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

The following script appaered to crash on linux and returned a nullpointer on windows systems.

CODE
-    script    testings    -1,{
OnInit:
    // some code to execute
    initnpctimer();    
OnTimer10000:
    stopnpctimer();
    doevent("testings::OnInit");  // crash/nullpo
    end();
}


You should check if there's a player attached or not. Without it doesn't work.

CODE
--- nullpo info --------------------------------------------
c:\program files\eathena\up2date\ea\src\map\npc.c:745: in func `unknown'
--- end nullpo info ----------------------------------------


Jimetsu~