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 committed 2016-07-24 11:37:42 +01:00
1 parent 5b66f87031
commit 8b79ededd9
2 files changed
+2 -2

No files matched your search

+1 -1
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