mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-24 17:02:55 +02:00
Catch exception by reference rather than value
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user