Catch exception by reference rather than value

This commit is contained in:
Tamás Bálint Misius 2020-02-23 23:43:11 +01:00
parent 4f01130ecc
commit 82019ef020
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -85,7 +85,7 @@ int main(int argc, char *argv[])
{
gameSave = new GameSave(inputFile);
}
catch (ParseException e)
catch (ParseException &e)
{
//Render the save again later or something? I don't know
if (ByteString(e.what()).FromUtf8() == "Save from newer version")