Fixed a crash when moving a player to a non-existent world (reported by tonibm19)
http://forum.mc-server.org/showthread.php?tid=434&pid=8865#pid8865 crashdump.zip/crash_mcs_165c.dmp git-svn-id: http://mc-server.googlecode.com/svn/trunk@1645 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
cc4a1cad39
commit
eff79ee55f
@ -896,7 +896,7 @@ bool cPlayer::MoveToWorld(const char * a_WorldName)
|
|||||||
cWorld * World = cRoot::Get()->GetWorld(a_WorldName);
|
cWorld * World = cRoot::Get()->GetWorld(a_WorldName);
|
||||||
if (World == NULL)
|
if (World == NULL)
|
||||||
{
|
{
|
||||||
LOG("%s: Couldn't find world \"%s\".", a_WorldName);
|
LOG("%s: Couldn't find world \"%s\".", __FUNCTION__, a_WorldName);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user