From 7f7be9e39321b27e1fd6bbc7fa632c8ac5f71a50 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 6 May 2017 20:38:36 +0200 Subject: [PATCH] - fixed compile errors in last commit. --- src/compatibility.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compatibility.cpp b/src/compatibility.cpp index 65afc72ff6..9fd9f5746e 100644 --- a/src/compatibility.cpp +++ b/src/compatibility.cpp @@ -52,6 +52,7 @@ #include "p_tags.h" #include "r_state.h" #include "w_wad.h" +#include "textures.h" #include "g_levellocals.h" // MACROS ------------------------------------------------------------------ @@ -621,9 +622,9 @@ void SetCompatibilityParams() } case CP_SETWALLTEXTURE: { - if (CompatParams[i + 1] < numlines) + if ((unsigned)CompatParams[i + 1] < level.lines.Size()) { - side_t *side = lines[CompatParams[i + 1]].sidedef[CompatParams[i + 2]]; + side_t *side = level.lines[CompatParams[i + 1]].sidedef[CompatParams[i + 2]]; if (side != NULL) { assert(TexNames.Size() > (unsigned int)CompatParams[i + 4]);