summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua3
1 files changed, 3 insertions, 0 deletions
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