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 | |
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')
-rw-r--r-- | src/script/cpp_api/s_item.h | 2 | ||||
-rw-r--r-- | src/script/lua_api/l_mapgen.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/script/cpp_api/s_item.h b/src/script/cpp_api/s_item.h index cca1641fd..88cc1909d 100644 --- a/src/script/cpp_api/s_item.h +++ b/src/script/cpp_api/s_item.h @@ -30,7 +30,7 @@ struct ItemDefinition; class LuaItemStack; class ModApiItemMod; class InventoryList; -class InventoryLocation; +struct InventoryLocation; class ScriptApiItem : virtual public ScriptApiBase 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; |