World should no longer crash if the start_zone query fails at character creation.

This commit is contained in:
Derision
2013-02-19 20:07:53 +00:00
parent 74194cd38c
commit e0b38cf3cc
3 changed files with 27 additions and 30 deletions
+8 -3
View File
@@ -1458,11 +1458,16 @@ bool Client::OPCharCreate(char *name, CharCreate_Struct *cc)
clog(WORLD__CLIENT_ERR,"Error getting zone id for '%s'", startzone);
}
else // otherwise use normal starting zone logic
{
{
bool ValidStartZone = false;
if(ClientVersionBit & BIT_TitaniumAndEarlier)
database.GetStartZone(&pp, cc);
ValidStartZone = database.GetStartZone(&pp, cc);
else
database.GetStartZoneSoF(&pp, cc);
ValidStartZone = database.GetStartZoneSoF(&pp, cc);
if(!ValidStartZone)
return false;
}
}