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; }