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(;;) 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);