aboutsummaryrefslogtreecommitdiff
path: root/src/server/collision/BoundingIntervalHierarchy.cpp
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2013-01-04 23:13:21 +0000
committerNay <dnpd.dd@gmail.com>2013-01-04 23:14:14 +0000
commita509aea659c3c488617fd396489f52dc8c64a3e8 (patch)
tree87de8c68bf03311f691c40120dbd59458c457691 /src/server/collision/BoundingIntervalHierarchy.cpp
parente0a5aabaf76359fd6e537ad06d4663924766e9d2 (diff)
Core/Misc: Fix a couple of warnings, some of them performance related
Errors were found using Cppcheck, open-source static analysis tool
Diffstat (limited to 'src/server/collision/BoundingIntervalHierarchy.cpp')
-rw-r--r--src/server/collision/BoundingIntervalHierarchy.cpp2
1 files changed, 1 insertions, 1 deletions
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<uint32> &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);