1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

do not free non allocated array

This commit is contained in:
Ted John
2016-06-26 22:01:43 +01:00
parent 6d80f2bc79
commit 602a3d4775

View File

@@ -36,7 +36,10 @@ enum OBJ_STRING_ID
RideObject::~RideObject()
{
Memory::FreeArray(_peepLoadingPositions, 4);
for (int i = 0; i < 4; i++)
{
Memory::Free(_peepLoadingPositions[i]);
}
}
void RideObject::ReadLegacy(IStream * stream)