From b3d842e8590938de3e4ac6cfea61a7df3023f4cc Mon Sep 17 00:00:00 2001
From: Monster Iestyn <iestynjealous@ntlworld.com>
Date: Thu, 3 Mar 2016 14:43:42 +0000
Subject: [PATCH] Fix accidental copy+paste of o to d and normal in slope_get
 code

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

diff --git a/src/lua_maplib.c b/src/lua_maplib.c
index a6ebf1abee..218f26e1b7 100644
--- a/src/lua_maplib.c
+++ b/src/lua_maplib.c
@@ -1213,9 +1213,9 @@ static int slope_get(lua_State *L)
 		return 1;
 	case slope_d: // d
 		lua_createtable(L, 0, 2);
-		lua_pushfixed(L, slope->o.x);
+		lua_pushfixed(L, slope->d.x);
 		lua_setfield(L, -2, "x");
-		lua_pushfixed(L, slope->o.y);
+		lua_pushfixed(L, slope->d.y);
 		lua_setfield(L, -2, "y");
 		return 1;
 	case slope_zdelta: // zdelta
@@ -1223,9 +1223,9 @@ static int slope_get(lua_State *L)
 		return 1;
 	case slope_normal: // normal
 		lua_createtable(L, 0, 2);
-		lua_pushfixed(L, slope->o.x);
+		lua_pushfixed(L, slope->normal.x);
 		lua_setfield(L, -2, "x");
-		lua_pushfixed(L, slope->o.y);
+		lua_pushfixed(L, slope->normal.y);
 		lua_setfield(L, -2, "y");
 		return 1;
 	case slope_zangle: // zangle
-- 
GitLab