forked from rosebudai/OpenRCT2-Web
do not free non allocated array
This commit is contained in:
1 parent
6d80f2bc79
commit
602a3d4775
1 file changed
+4
-1
@@ -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