Bug #266 Attempt to index nil global _ACTION
This commit is contained in:
parent
41198fac9a
commit
55541f2dbe
@ -38,7 +38,7 @@
|
||||
|
||||
-- The "next-gen" actions have now replaced their deprecated counterparts.
|
||||
-- Provide a warning for a little while before I remove them entirely.
|
||||
if _ACTION:endswith("ng") then
|
||||
if _ACTION and _ACTION:endswith("ng") then
|
||||
print(string.format("** Warning: '%s' has been deprecated; use '%s' instead", _ACTION, _ACTION:sub(1, -3)))
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user