I am using Lua (5.2.1), in a library, called from C++.
For example from C++ I call the function OnHear and pass the heard text.
In my Lua files, however, I have examined something weird:
function OnHear(_Text)
txt = _Text;
txt = string.lower(txt); -- comment this line to make the code below run
-- other code
end
It does not work; "other code" runs fine when the line with lower is commented, but not if it is being executed.
function OnHear(_Text)
txt = string.lower(_Text);
-- other code
end
same problem...
I also found out, that the same problem (code afterwards not being executed) occurs when I call for instance string.len(txt) or anything like that...
I have no idea what could cause my problem and Googling/searching Stackkoverflow did not help me, sadly...
Thanks for any reply in advance!