diff options
author | Sfan5 <sfan5@live.de> | 2014-04-15 19:49:32 +0200 |
---|---|---|
committer | Sfan5 <sfan5@live.de> | 2014-04-15 21:34:53 +0200 |
commit | 118e2ae865bd7a0020586ef72d05bf14d66f4eae (patch) | |
tree | 5da3d9bc1d4e26e7e75f61b5ea10916161f29cba /src/script/lua_api | |
parent | d436502fa499255236350fc9204f9c508414704e (diff) | |
download | minetest-118e2ae865bd7a0020586ef72d05bf14d66f4eae.tar.gz minetest-118e2ae865bd7a0020586ef72d05bf14d66f4eae.tar.bz2 minetest-118e2ae865bd7a0020586ef72d05bf14d66f4eae.zip |
Fix all warnings reported by clang
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_mapgen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp index 56109a9dd..9fbb46ee1 100644 --- a/src/script/lua_api/l_mapgen.cpp +++ b/src/script/lua_api/l_mapgen.cpp @@ -324,8 +324,8 @@ int ModApiMapgen::l_register_decoration(lua_State *L) BiomeDefManager *bdef = emerge->biomedef; enum DecorationType decotype = (DecorationType)getenumfield(L, index, - "deco_type", es_DecorationType, -1); - if (decotype == -1) { + "deco_type", es_DecorationType, 0); + if (decotype == 0) { errorstream << "register_decoration: unrecognized " "decoration placement type"; return 0; |