From 6eb901530345294f2836e60b5a7f60503728d59b Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Fri, 13 Jan 2017 14:51:31 +0100 Subject: [PATCH] - Fixed GCC/Clang compile errors. --- src/gl/scene/gl_bsp.cpp | 1 + src/p_sectors.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gl/scene/gl_bsp.cpp b/src/gl/scene/gl_bsp.cpp index af4d46d61..9b78850a9 100644 --- a/src/gl/scene/gl_bsp.cpp +++ b/src/gl/scene/gl_bsp.cpp @@ -28,6 +28,7 @@ #include "p_lnspec.h" #include "p_local.h" #include "a_sharedglobal.h" +#include "g_levellocals.h" #include "r_sky.h" #include "p_effect.h" #include "po_man.h" diff --git a/src/p_sectors.cpp b/src/p_sectors.cpp index e64296da7..5788588a6 100644 --- a/src/p_sectors.cpp +++ b/src/p_sectors.cpp @@ -1464,7 +1464,7 @@ DEFINE_ACTION_FUNCTION(_Sector, NextLowestFloorAt) IFVIRTUALPTRNAME(act, "SectorAction", TriggerAction) { - VMValue params[3] = { act, thing, activation }; + VMValue params[3] = { (DObject *)act, thing, activation }; VMReturn ret; int didit; ret.IntAt(&didit);