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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user