1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix all warnings reported by clang

This commit is contained in:
Sfan5 2014-04-15 19:49:32 +02:00
parent d436502fa4
commit 118e2ae865
27 changed files with 49 additions and 63 deletions

View file

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