Bug #266 Attempt to index nil global _ACTION

This commit is contained in:
Jason Perkins 2012-12-31 10:34:19 -05:00
parent 41198fac9a
commit 55541f2dbe

View File

@ -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