Big net::msg conversion
This commit is contained in:
+4
-2
@@ -737,7 +737,7 @@ void ED_ParseGlobals (std::istringstream &ss)
|
||||
if (ss.eof())
|
||||
Host_Error ("ED_ParseEntity: EOF without closing brace");
|
||||
|
||||
if (token->front() == '}')
|
||||
if (!token->empty() && token->front() == '}')
|
||||
Host_Error ("ED_ParseEntity: closing brace without data");
|
||||
|
||||
key = ED_FindGlobal (keyname.c_str());
|
||||
@@ -940,7 +940,9 @@ void ED_ParseEdict(std::istringstream &ss, edict_t *ent)
|
||||
Host_Error ("ED_ParseEntity: EOF without closing brace");
|
||||
}
|
||||
|
||||
if (token->front() == '}') {
|
||||
if (!token->empty() &&
|
||||
|
||||
token->front() == '}') {
|
||||
Host_Error ("ED_ParseEntity: closing brace without data");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user