fix broken player files crashing the server
This commit is contained in:
parent
fd2870bc0c
commit
aea3b4882b
|
@ -136,8 +136,7 @@ void Player::deSerialize(std::istream &is)
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
if(is.eof())
|
if(is.eof())
|
||||||
throw SerializationError
|
return;
|
||||||
("Player::deSerialize(): PlayerArgsEnd not found");
|
|
||||||
std::string line;
|
std::string line;
|
||||||
std::getline(is, line);
|
std::getline(is, line);
|
||||||
std::string trimmedline = trim(line);
|
std::string trimmedline = trim(line);
|
||||||
|
|
Loading…
Reference in New Issue