mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-08-20 18:18:52 +00:00
fixes for Issue 56: Fairly minor bugs picked up by static analysis tool
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user