summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas L <lordskelethom@gmail.com>2022-02-15 01:10:00 +0100
committerGitHub <noreply@github.com>2022-02-15 01:10:00 +0100
commit81c95de3f14b9df1947bf67347784730aba7bed1 (patch)
tree4b3f2001413167c85e5b4e00f9127a65f40e6134
parent045bf3aa1e2cd927df14ac1b483b095d6a23c9d4 (diff)
parent3520bec073217ebf457e9868e1bf9e05b40383c1 (diff)
Merge pull request #3074 from AssassinTee/fix/editor2-crash-on-empty-clickeditor
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
// -----------------------