Fix build for nonstandard compiler versions like '8.3-win32'

This commit is contained in:
Melissa Goad 2019-10-17 21:40:16 -05:00
parent b9dd24a6b5
commit 5abd8b8230

View File

@ -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