mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 22:04:24 +00:00
Use empty() instead of comparing size() with 0.
Issue found by cppcheck.
This commit is contained in:
parent
4a25199ba7
commit
acead96ea8
@ -153,7 +153,7 @@ void positional_source::update(unsigned int time, const display &disp)
|
||||
|
||||
// If no locations have been specified, treat the source as if
|
||||
// it was present everywhere on the map
|
||||
if(locations_.size() == 0) {
|
||||
if(locations_.empty()) {
|
||||
sound::play_sound_positioned(files_, id_, loops_, 0); // max volume
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user