From ad0069676a4cbc1201dbf3bfef35f28052df303b Mon Sep 17 00:00:00 2001
From: wolfy852 <wolfy852@hotmail.com>
Date: Thu, 3 Mar 2016 20:47:05 -0600
Subject: [PATCH] slope->normal is vector3_t, not vector2_t

---
 src/lua_maplib.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lua_maplib.c b/src/lua_maplib.c
index 218f26e1b7..f584ce4c36 100644
--- a/src/lua_maplib.c
+++ b/src/lua_maplib.c
@@ -1222,11 +1222,13 @@ static int slope_get(lua_State *L)
 		lua_pushfixed(L, slope->zdelta);
 		return 1;
 	case slope_normal: // normal
-		lua_createtable(L, 0, 2);
+		lua_createtable(L, 0, 3);
 		lua_pushfixed(L, slope->normal.x);
 		lua_setfield(L, -2, "x");
 		lua_pushfixed(L, slope->normal.y);
 		lua_setfield(L, -2, "y");
+		lua_pushfixed(L, slope->normal.z);
+		lua_setfield(L, -2, "z");
 		return 1;
 	case slope_zangle: // zangle
 		lua_pushangle(L, slope->zangle);
-- 
GitLab