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:
parent
a358c040f2
commit
a4c5f10ecf
2 changed files with 5 additions and 1 deletions
|
@ -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(): "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue