mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2024-11-10 06:41:49 +00:00
Fixed crashes in the Choose Thing Type window when pressing certain keys while no Thing is selected
This commit is contained in:
parent
6252bdaaa7
commit
a0c77248b7
1 changed files with 2 additions and 1 deletions
|
@ -1450,7 +1450,8 @@ namespace CodeImp.DoomBuilder.GZBuilder.Controls
|
|||
int intNumber = 0;
|
||||
|
||||
TreeNode tnNewlySelectedNodeWithKeys = null;
|
||||
switch(e.KeyCode)
|
||||
if (tnMostRecentSelectedNode == null) tnMostRecentSelectedNode = this.Nodes[0];
|
||||
switch (e.KeyCode)
|
||||
{
|
||||
case Keys.Down:
|
||||
tnNewlySelectedNodeWithKeys = tnMostRecentSelectedNode.NextVisibleNode;
|
||||
|
|
Loading…
Reference in a new issue