* truncate local profile if sync with game server fails (entry deleted)
 * do not use chars/guilds/arena teams with empty names
This commit is contained in:
Sarjuuk
2022-02-06 19:05:55 +01:00
parent 3a98201837
commit 65bfd93761
5 changed files with 51 additions and 8 deletions

View File

@@ -573,7 +573,15 @@ class RemoteProfileList extends ProfileList
}
else
{
trigger_error('character "'.$curTpl['name'].'" belongs to nonexistant realm #'.$r, E_USER_WARNING);
trigger_error('char #'.$guid.' belongs to nonexistant realm #'.$r, E_USER_WARNING);
unset($this->templates[$guid]);
continue;
}
// empty name
if (!$curTpl['name'])
{
trigger_error('char #'.$guid.' on realm #'.$r.' has empty name.', E_USER_WARNING);
unset($this->templates[$guid]);
continue;
}