ToLua: Fixed LuaJit compatibility.
This commit is contained in:
parent
4083bc7005
commit
3ddd2f567c
@ -54,3 +54,11 @@ string.repl = ogsub
|
||||
|
||||
|
||||
|
||||
-- Lua 5.2+ and LuaJit don't have string.gfind(). Use string.gmatch() instead:
|
||||
if not(string.gfind) then
|
||||
string.gfind = string.gmatch
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user