mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Fix #4164: Keep on crashing on OpenRCT2 0.0.5
Caused by hrow; instead of hrow Exception() when the image table is too large.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
class Exception : public std::exception
|
||||
{
|
||||
public:
|
||||
Exception() : Exception(nullptr) { }
|
||||
Exception() : Exception("") { }
|
||||
|
||||
Exception(const char * message) : Exception(std::string(message)) { }
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ void ImageTable::Read(IReadObjectContext * context, IStream * stream)
|
||||
if (_data == nullptr)
|
||||
{
|
||||
context->LogError(OBJECT_ERROR_BAD_IMAGE_TABLE, "Image table too large.");
|
||||
throw;
|
||||
throw Exception();
|
||||
}
|
||||
|
||||
// Read g1 element headers
|
||||
|
||||
Reference in New Issue
Block a user