diff options
author | Simei Yin | 2017-08-12 16:15:36 +0200 |
---|---|---|
committer | Simei Yin | 2017-08-12 16:49:47 +0200 |
commit | 3cfb5bcdc534305a8e5d1b8bbd241e88eac83833 (patch) | |
tree | 578b68024ca3686636d99c07279d82814df49b37 /engines/sludge/floor.cpp | |
parent | 606d2135b85a15820fb8a95d3d7d91adfae76b24 (diff) | |
download | scummvm-rg350-3cfb5bcdc534305a8e5d1b8bbd241e88eac83833.tar.gz scummvm-rg350-3cfb5bcdc534305a8e5d1b8bbd241e88eac83833.tar.bz2 scummvm-rg350-3cfb5bcdc534305a8e5d1b8bbd241e88eac83833.zip |
SLUDGE: Fix unmatched delete and delete []
Diffstat (limited to 'engines/sludge/floor.cpp')
-rw-r--r-- | engines/sludge/floor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sludge/floor.cpp b/engines/sludge/floor.cpp index 1884b449c8..dff6980c7c 100644 --- a/engines/sludge/floor.cpp +++ b/engines/sludge/floor.cpp @@ -107,13 +107,13 @@ bool initFloor() { void killFloor() { for (int i = 0; i < currentFloor->numPolygons; i++) { delete []currentFloor->polygon[i].vertexID; - delete currentFloor->matrix[i]; + delete []currentFloor->matrix[i]; } - delete currentFloor->polygon; + delete []currentFloor->polygon; currentFloor->polygon = NULL; - delete currentFloor->vertex; + delete []currentFloor->vertex; currentFloor->vertex = NULL; - delete currentFloor->matrix; + delete []currentFloor->matrix; currentFloor->matrix = NULL; } |