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:
parent
d436502fa4
commit
118e2ae865
27 changed files with 49 additions and 63 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue