From 5abd8b823093dc31cdc3d192fe4ed148d18b191e Mon Sep 17 00:00:00 2001 From: Melissa Goad Date: Thu, 17 Oct 2019 21:40:16 -0500 Subject: [PATCH] Fix build for nonstandard compiler versions like '8.3-win32' --- scripts/genie.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/genie.lua b/scripts/genie.lua index 827d27709c0..b29e02f9d90 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -42,6 +42,9 @@ function str_to_version(str) end local cnt = 10000 for word in string.gmatch(str, '([^.]+)') do + if(tonumber(word) == nil) then + return val + end val = val + tonumber(word) * cnt cnt = cnt / 100 end