From 6b173609a043f108eb47ff3bdf933c18adbe2cb1 Mon Sep 17 00:00:00 2001 From: geoffbeier Date: Fri, 5 Jun 2020 03:33:07 -0400 Subject: [PATCH] fix version check so that it doesn't fail of the loaded version is equal to the expected version. --- sfxr.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfxr.lua b/sfxr.lua index d1e0342..254817d 100644 --- a/sfxr.lua +++ b/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