Fixed crash when dragging mouse and no unit is selected
This commit is contained in:
parent
d942963084
commit
285b75b4a9
1 changed files with 1 additions and 1 deletions
|
@ -1274,7 +1274,7 @@ local void EditorCallbackMouse(int x, int y)
|
|||
EditTiles(Viewport2MapX(TheUI.LastClickedVP, CursorX),
|
||||
Viewport2MapY(TheUI.LastClickedVP, CursorY), TileCursor,
|
||||
TileCursorSize);
|
||||
} else if (EditorState == EditorEditUnit) {
|
||||
} else if (EditorState == EditorEditUnit && CursorBuilding) {
|
||||
if (CanBuildUnitType(NULL, CursorBuilding,
|
||||
Viewport2MapX(TheUI.LastClickedVP, CursorX),
|
||||
Viewport2MapY(TheUI.LastClickedVP, CursorY))) {
|
||||
|
|
Loading…
Add table
Reference in a new issue