mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +00:00
SLUDGE: fix crash in FloorManager::setFloorNull
numPolygons wasn't getting reset to 0, so the next invocation was trying to delete non-existent polygons
This commit is contained in:
parent
afefb38617
commit
a060d35418
@ -116,6 +116,7 @@ void FloorManager::setFloorNull() {
|
||||
delete[] _currentFloor->polygon[i].vertexID;
|
||||
delete[] _currentFloor->matrix[i];
|
||||
}
|
||||
_currentFloor->numPolygons = 0;
|
||||
delete[] _currentFloor->polygon;
|
||||
_currentFloor->polygon = nullptr;
|
||||
delete[] _currentFloor->vertex;
|
||||
|
Loading…
Reference in New Issue
Block a user