mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
Fix some errors reported by clang static analyzer.
This commit is contained in:
@@ -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(): "
|
||||
|
Reference in New Issue
Block a user