Fix wrong return value in get_sky Lua call since ad9fcf859ec2347325830e09504ae96968b51ea8
authorLoic Blot <loic.blot@unix-experience.fr>
Tue, 23 May 2017 17:59:47 +0000 (19:59 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Tue, 23 May 2017 17:59:47 +0000 (19:59 +0200)
Fix #5803

src/script/lua_api/l_object.cpp

index c7a31d0487d2d30e0f9e223a88012a3ecc62e484..aaab0d98eca1bc11bfd8ee5f9b2def0805051eaf 100644 (file)
@@ -1732,7 +1732,7 @@ int ObjectRef::l_get_sky(lua_State *L)
                i++;
        }
        lua_pushboolean(L, clouds);
-       return 3;
+       return 4;
 }
 
 // set_clouds(self, {density=, color=, ambient=, height=, thickness=, speed=})