From 47b6e627449187f5385e9beafeda3b8517faae26 Mon Sep 17 00:00:00 2001 From: ghassanpl Date: Sat, 6 Aug 2016 22:14:49 +0200 Subject: Fixed bug with BoundingBox Lua constructor Fixed use-after-free in DestroyLight --- src/rlua.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rlua.h') diff --git a/src/rlua.h b/src/rlua.h index fb3a6698..85853793 100644 --- a/src/rlua.h +++ b/src/rlua.h @@ -768,7 +768,7 @@ static int lua_BoundingBox(lua_State* L) { Vector3 min = LuaGetArgument_Vector3(L, 1); Vector3 max = LuaGetArgument_Vector3(L, 2); - LuaPush_BoundingBox(L, (BoundingBox) { { min.x, min.y }, { max.x, max.y } }); + LuaPush_BoundingBox(L, (BoundingBox) { { min.x, min.y, min.z }, { max.x, max.y, max.z } }); return 1; } -- cgit v1.2.3