From 10e0cf8b2c27917a3fd45e73a5d835af4313db3b Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 12 Dec 2014 19:55:40 +0500 Subject: Use std::string::empty() instead of size() where applicable --- src/mg_decoration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mg_decoration.cpp') diff --git a/src/mg_decoration.cpp b/src/mg_decoration.cpp index 14368c091..761b231ed 100644 --- a/src/mg_decoration.cpp +++ b/src/mg_decoration.cpp @@ -155,7 +155,7 @@ size_t Decoration::placeDeco(Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax) if (mg->biomemap) { std::set::iterator iter; - if (biomes.size()) { + if (!biomes.empty()) { iter = biomes.find(mg->biomemap[mapindex]); if (iter == biomes.end()) continue; -- cgit v1.2.3