From df1b94eadd015b59bcc2d6651e4a84f6e882ef28 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 31 Oct 2009 23:37:42 -0400 Subject: [PATCH] Set Terrain scale to 1.0f by default so we avoid a division by zero. --- Source/Terrain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Terrain.cpp b/Source/Terrain.cpp index a102e52..b3ea6a0 100644 --- a/Source/Terrain.cpp +++ b/Source/Terrain.cpp @@ -1495,7 +1495,7 @@ Terrain::Terrain() memset(patchobjectnum, 0, sizeof(patchobjectnum)); memset(patchobjects, 0, sizeof(patchobjects)); - scale = 0; + scale = 1.0f; type = 0; memset(heightmap, 0, sizeof(heightmap)); memset(normals, 0, sizeof(normals)); -- 2.39.5