diff options
| author | Subv <s.v.h21@hotmail.com> | 2012-08-24 15:33:38 -0500 |
|---|---|---|
| committer | Subv <s.v.h21@hotmail.com> | 2012-08-24 15:33:38 -0500 |
| commit | 4351548c750f94425d8b7c24180a813acb6ac443 (patch) | |
| tree | 3dcb1731ac3d99484b4c8081e83950fa0d5c0fa7 | |
| parent | 937518181f2513e4ef43700d5b856349ebb7c7e6 (diff) | |
Tools/MapExtractor: Fixed a crash caused by using a variable before it was initialized
| -rw-r--r-- | src/tools/map_extractor/System.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/map_extractor/System.cpp b/src/tools/map_extractor/System.cpp index ad9a663ac27..44e852b12b9 100644 --- a/src/tools/map_extractor/System.cpp +++ b/src/tools/map_extractor/System.cpp @@ -836,7 +836,7 @@ bool ConvertADT(char *filename, char *filename2, int /*cell_y*/, int /*cell_x*/, else map.holesOffset = map.heightMapOffset + map.heightMapSize; - memset(holes, 0, map.holesSize); + memset(holes, 0, sizeof(holes)); bool hasHoles = false; for (int i = 0; i < ADT_CELLS_PER_GRID; ++i) |
