Properly fail loading state when fonts don't match.
It should fail later anyway, but this will prevent crashes just in case.
This commit is contained in:
parent
3a376a0cd9
commit
c0392e10be
1 changed files with 1 additions and 0 deletions
|
@ -286,6 +286,7 @@ public:
|
|||
p.Do(numInternalFonts);
|
||||
if (numInternalFonts != (int)internalFonts.size()) {
|
||||
ERROR_LOG(SCEFONT, "Unable to load state: different internal font count.");
|
||||
p.SetError(p.ERROR_FAILURE);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue