fixes for Issue 56: Fairly minor bugs picked up by static analysis tool

This commit is contained in:
Mikko Mononen
2010-03-18 08:53:45 +00:00
parent 8291ceace2
commit 9cd943264e
5 changed files with 68 additions and 22 deletions

View File

@@ -137,7 +137,7 @@ bool duDumpCompactHeightfield(struct rcCompactHeightfield& chf, const char* file
fwrite(&chf.cs, sizeof(chf.cs), 1, fp);
fwrite(&chf.ch, sizeof(chf.ch), 1, fp);
int tmp;
int tmp = 0;
if (chf.cells) tmp |= 1;
if (chf.spans) tmp |= 2;
if (chf.dist) tmp |= 4;