From c03024e1b081763cdcfa027a167d1c45bf762a4b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 14 Apr 2018 22:34:25 +0200 Subject: [PATCH] - fixed last commit --- src/gl/scene/gl_wall.h | 4 ++-- src/tarray.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gl/scene/gl_wall.h b/src/gl/scene/gl_wall.h index a2fa33eca..e1f551b62 100644 --- a/src/gl/scene/gl_wall.h +++ b/src/gl/scene/gl_wall.h @@ -106,11 +106,11 @@ struct GLSectorPlane } }; -class FDrawInfo; +struct FDrawInfo; class GLWall { - friend class FDrawInfo; + friend struct FDrawInfo; public: static const char passflag[]; diff --git a/src/tarray.h b/src/tarray.h index 9addadcef..5a11e4a5b 100644 --- a/src/tarray.h +++ b/src/tarray.h @@ -1241,7 +1241,8 @@ public: { if (!memcmp(t, Array[i], sizeof(T))) return Array[i]; } - Array.Push(new T(*t)); + auto newo = new T(*t); + Array.Push(newo); return newo; }