forked from rosebudai/OpenRCT2-Web
Catch exceptions using const-reference rather than value
This commit is contained in:
1 parent
a5744dcaee
commit
de6e493049
1 file changed
+1
-1
@@ -238,7 +238,7 @@ extern "C"
|
||||
delete zip;
|
||||
Memory::Free(fdata);
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (const Exception &ex)
|
||||
{
|
||||
Console::Error::WriteLine(ex.GetMessage());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user