diff options
author | Alexandre Detiste | 2016-02-14 10:27:44 +0100 |
---|---|---|
committer | Alexandre Detiste | 2016-02-15 18:27:02 +0100 |
commit | 6c298e964f7352d82b13d5f60d8e5cc638176dcd (patch) | |
tree | 5e90ad2065c7fbaa86e76b82a4ba5b1fc2bb5105 /engines/sword25/script | |
parent | a12940c0a9d67ceb3e13a0b20f50000cc18841a3 (diff) | |
download | scummvm-rg350-6c298e964f7352d82b13d5f60d8e5cc638176dcd.tar.gz scummvm-rg350-6c298e964f7352d82b13d5f60d8e5cc638176dcd.tar.bz2 scummvm-rg350-6c298e964f7352d82b13d5f60d8e5cc638176dcd.zip |
JANITORIAL: Typos detected with lintian & grep
Diffstat (limited to 'engines/sword25/script')
-rw-r--r-- | engines/sword25/script/luacallback.cpp | 2 | ||||
-rw-r--r-- | engines/sword25/script/luascript.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/script/luacallback.cpp b/engines/sword25/script/luacallback.cpp index 72f7e01612..acfda498c6 100644 --- a/engines/sword25/script/luacallback.cpp +++ b/engines/sword25/script/luacallback.cpp @@ -119,7 +119,7 @@ void LuaCallback::invokeCallbackFunctions(lua_State *L, uint objectHandle) { // Lua_pcall the function and the parameters pop themselves from the stack if (lua_pcall(L, argumentCount, 0, 0) != 0) { // An error has occurred - error("An error occured executing a callback function: %s", lua_tostring(L, -1)); + error("An error occurred executing a callback function: %s", lua_tostring(L, -1)); // Pop error message from the stack lua_pop(L, 1); diff --git a/engines/sword25/script/luascript.cpp b/engines/sword25/script/luascript.cpp index e93289596b..3aca6676ac 100644 --- a/engines/sword25/script/luascript.cpp +++ b/engines/sword25/script/luascript.cpp @@ -214,7 +214,7 @@ bool LuaScriptEngine::executeBuffer(const byte *data, uint size, const Common::S // Run buffer contents if (lua_pcall(_state, 0, 0, -2) != 0) { - error("An error occured while executing \"%s\":\n%s.", + error("An error occurred while executing \"%s\":\n%s.", name.c_str(), lua_tostring(_state, -1)); lua_pop(_state, 2); |