1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Catch exceptions using const-reference rather than value

This commit is contained in:
Michał Janiszewski
2017-03-23 22:17:36 +01:00
parent a5744dcaee
commit de6e493049

View File

@@ -238,7 +238,7 @@ extern "C"
delete zip;
Memory::Free(fdata);
}
catch (Exception ex)
catch (const Exception &ex)
{
Console::Error::WriteLine(ex.GetMessage());
}