mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Catch exceptions by const-ref, not by value
This commit is contained in:
@@ -484,7 +484,7 @@ CGeneralTextHandler::CGeneralTextHandler()
|
||||
znpc00.push_back(parser.readString());
|
||||
} while (parser.endLine());
|
||||
}
|
||||
catch (std::runtime_error)
|
||||
catch (const std::runtime_error &)
|
||||
{
|
||||
logGlobal->warn("WoG file ZNPC00.TXT containing commander texts was not found");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user