From f44cf007b775bf897db99c7c20e66929dd59a9a2 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 10 Jan 2019 10:43:18 +0200 Subject: [PATCH] - fixed sector marker initialization This fixes a crash when starting a new game for the second time --- src/g_level.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_level.cpp b/src/g_level.cpp index a7bad86c8d..4d8605c657 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -1991,7 +1991,7 @@ class DSectorMarker : public DObject }; DECLARE_CLASS(DSectorMarker, DObject) public: - DSectorMarker(FLevelLocals *l) : SecNum(0),PolyNum(0),SideNum(0) {} + DSectorMarker(FLevelLocals *l) : Level(l), SecNum(0),PolyNum(0),SideNum(0) {} size_t PropagateMark(); FLevelLocals *Level; int SecNum;