fix version check so that it doesn't fail of the loaded version is equal to the expected version.

This commit is contained in:
geoffbeier 2020-06-05 03:33:07 -04:00
parent fbc5899553
commit 6b173609a0

View File

@ -1381,7 +1381,7 @@ function sfxr.Sound:load(f)
local params, version = assert(loadstring(code))()
-- check version compatibility
assert(version > sfxr.VERSION, "incompatible version: " .. tostring(version))
assert(version >= sfxr.VERSION, "incompatible version: loaded " .. tostring(version) .. " wanted >= " .. tostring(sfxr.VERSION))
self:resetParameters()
-- merge the loaded table into the own