summaryrefslogtreecommitdiffstats
path: root/Script.c
diff options
context:
space:
mode:
Diffstat (limited to 'Script.c')
-rw-r--r--Script.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Script.c b/Script.c
index 1af5cb4..e9b791e 100644
--- a/Script.c
+++ b/Script.c
@@ -837,6 +837,7 @@ func SubMenuItemCallback(int action, object menuObject, args, array allArgs)
func DecodeSelection(int& selection)
{
+ selection ??= 0;
var column = selection % columnCount;
selection /= columnCount;
selection -= columnOffsets[column];