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

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")