fix broken player files crashing the server

This commit is contained in:
darkrose 2014-09-19 23:02:46 +10:00
parent fd2870bc0c
commit aea3b4882b
1 changed files with 1 additions and 2 deletions

View File

@ -136,8 +136,7 @@ void Player::deSerialize(std::istream &is)
for(;;)
{
if(is.eof())
throw SerializationError
("Player::deSerialize(): PlayerArgsEnd not found");
return;
std::string line;
std::getline(is, line);
std::string trimmedline = trim(line);