1
0
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:
Ted John
2016-07-24 11:36:21 +01:00
parent 5b66f87031
commit 8b79ededd9
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@
class Exception : public std::exception
{
public:
Exception() : Exception(nullptr) { }
Exception() : Exception("") { }
Exception(const char * message) : Exception(std::string(message)) { }

View File

@@ -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