aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
Diffstat (limited to 'src/script')
-rw-r--r--src/script/cpp_api/s_item.h2
-rw-r--r--src/script/lua_api/l_mapgen.cpp4
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;