Skip to content

Commit 0120517

Browse files
committed
[GEN] Fix wrong delete function used in meshmodel class when deallocating gapfiller (#623)
1 parent 3b9c233 commit 0120517

File tree

1 file changed

+1
-1
lines changed
  • Generals/Code/Libraries/Source/WWVegas/WW3D2

1 file changed

+1
-1
lines changed

Generals/Code/Libraries/Source/WWVegas/WW3D2/meshmdl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ MeshModelClass & MeshModelClass::operator = (const MeshModelClass & that)
139139
clone_materials(that);
140140

141141
if (GapFiller) {
142-
delete[] GapFiller;
142+
delete GapFiller;
143143
GapFiller=NULL;
144144
}
145145
if (that.GapFiller) GapFiller=W3DNEW GapFillerClass(*that.GapFiller);

0 commit comments

Comments
 (0)