Use empty() instead of comparing size() with 0.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2010-01-03 18:45:05 +00:00
parent 4a25199ba7
commit acead96ea8

View File

@ -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;
}