From: Ryan C. Gordon Date: Sun, 1 Nov 2009 03:37:42 +0000 (-0400) Subject: Set Terrain scale to 1.0f by default so we avoid a division by zero. X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=df1b94eadd015b59bcc2d6651e4a84f6e882ef28;p=lugaru.git Set Terrain scale to 1.0f by default so we avoid a division by zero. --- 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));