[Scummvm-git-logs] scummvm master -> a060d35418e27aa6af7eaf45aca78d2b993e1561

bluegr bluegr at gmail.com
Mon Jun 17 23:10:07 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
a060d35418 SLUDGE: fix crash in FloorManager::setFloorNull


Commit: a060d35418e27aa6af7eaf45aca78d2b993e1561
    https://github.com/scummvm/scummvm/commit/a060d35418e27aa6af7eaf45aca78d2b993e1561
Author: Sebastian Krzyszkowiak (dos at dosowisko.net)
Date: 2019-06-18T00:10:03+03:00

Commit Message:
SLUDGE: fix crash in FloorManager::setFloorNull

numPolygons wasn't getting reset to 0, so the next invocation was
trying to delete non-existent polygons

Changed paths:
    engines/sludge/floor.cpp


diff --git a/engines/sludge/floor.cpp b/engines/sludge/floor.cpp
index c51fcc4..eb961e9 100644
--- a/engines/sludge/floor.cpp
+++ b/engines/sludge/floor.cpp
@@ -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;





More information about the Scummvm-git-logs mailing list