mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 10:58:20 +00:00
World should no longer crash if the start_zone query fails at character creation.
This commit is contained in:
+8
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user