mirror of https://github.com/aseprite/aseprite.git
Fix non-void function path without return
This commit is contained in:
parent
9c5ca6bcc6
commit
8e07617a9d
|
@ -99,17 +99,15 @@ private:
|
|||
|
||||
lua_rawgeti(L, LUA_REGISTRYINDEX, ref);
|
||||
if (lua_pcall(L, 0, 1, 0)) {
|
||||
if (const char* s = lua_tostring(L, -1)) {
|
||||
if (const char* s = lua_tostring(L, -1))
|
||||
Console().printf("Error: %s", s);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
bool ret = lua_toboolean(L, -1);
|
||||
lua_pop(L, 1);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
std::string m_title;
|
||||
int m_onclickRef;
|
||||
|
|
Loading…
Reference in New Issue