mirror of
https://github.com/nucular/sfxrlua.git
synced 2024-12-24 18:44:20 +00:00
fix version check so that it doesn't fail of the loaded version is equal to the expected version.
This commit is contained in:
parent
fbc5899553
commit
6b173609a0
2
sfxr.lua
2
sfxr.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user