1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix some errors reported by clang static analyzer.

This commit is contained in:
Ilya Zhuravlev 2014-01-12 22:07:35 +04:00
parent a358c040f2
commit a4c5f10ecf
2 changed files with 5 additions and 1 deletions

View file

@ -1005,7 +1005,8 @@ void ServerEnvironment::clearAllObjects()
}
num_blocks_checked++;
if(num_blocks_checked % report_interval == 0){
if(report_interval != 0 &&
num_blocks_checked % report_interval == 0){
float percent = 100.0 * (float)num_blocks_checked /
loadable_blocks.size();
infostream<<"ServerEnvironment::clearAllObjects(): "