From a509aea659c3c488617fd396489f52dc8c64a3e8 Mon Sep 17 00:00:00 2001 From: Nay Date: Fri, 4 Jan 2013 23:13:21 +0000 Subject: Core/Misc: Fix a couple of warnings, some of them performance related Errors were found using Cppcheck, open-source static analysis tool --- src/server/collision/BoundingIntervalHierarchy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/collision/BoundingIntervalHierarchy.cpp') diff --git a/src/server/collision/BoundingIntervalHierarchy.cpp b/src/server/collision/BoundingIntervalHierarchy.cpp index 76218936879..ad3753ea3c9 100644 --- a/src/server/collision/BoundingIntervalHierarchy.cpp +++ b/src/server/collision/BoundingIntervalHierarchy.cpp @@ -241,7 +241,7 @@ void BIH::subdivide(int left, int right, std::vector &tempTree, buildDat bool BIH::writeToFile(FILE* wf) const { uint32 treeSize = tree.size(); - uint32 check=0, count=0; + uint32 check=0, count; check += fwrite(&bounds.low(), sizeof(float), 3, wf); check += fwrite(&bounds.high(), sizeof(float), 3, wf); check += fwrite(&treeSize, sizeof(uint32), 1, wf); -- cgit v1.2.3