From c0398224ef60b73067351d3e8f7a6e0d1ff7df72 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Mon, 16 Sep 2013 23:52:42 -0400 Subject: Fix some warnings and other minor details --- src/script/lua_api/l_mapgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script') diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp index 14693b43f..822685e34 100644 --- a/src/script/lua_api/l_mapgen.cpp +++ b/src/script/lua_api/l_mapgen.cpp @@ -484,7 +484,7 @@ int ModApiMapgen::l_create_schematic(lua_State *L) v3s16 pos = read_v3s16(L, -1); lua_pop(L, 1); - u8 prob = getintfield_default(L, -1, "prob", 0xFF); + u8 prob = getintfield_default(L, -1, "prob", MTSCHEM_PROB_ALWAYS); probability_list.push_back(std::make_pair(pos, prob)); } -- cgit v1.2.3