summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Winkens <winkens@fh-aachen.de>2022-02-14 17:01:54 +0100
committerMarvin Winkens <winkens@fh-aachen.de>2022-02-14 17:01:54 +0100
commit3520bec073217ebf457e9868e1bf9e05b40383c1 (patch)
tree4b3f2001413167c85e5b4e00f9127a65f40e6134
parent045bf3aa1e2cd927df14ac1b483b095d6a23c9d4 (diff)
fix: initialze DragMoveOverlayRect to prevent crash
-rw-r--r--src/game/editor/editor2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/editor/editor2.cpp b/src/game/editor/editor2.cpp
index d1def3811..6cc642ba9 100644
--- a/src/game/editor/editor2.cpp
+++ b/src/game/editor/editor2.cpp
@@ -1664,7 +1664,7 @@ void CEditor2::RenderMapEditorUiLayerGroups(CUIRect NavRect)
bool StartedMouseDragging = s_DragMove.m_IsDragging && OldIsMouseDragging == false;
bool DisplayDragMoveOverlay = s_DragMove.m_IsDragging && (DragMoveGroupListIndex >= 0 || DragMoveLayerListIndex >= 0);
- CUIRect DragMoveOverlayRect;
+ CUIRect DragMoveOverlayRect = NavRect;
int DragMoveOffset = 0;
int DragMoveGroupIdOffset = 0; // for group dragging
// -----------------------