mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
CLuaInstCCText: try to fix return value of CCTextGetLines()
Init was missing.
This commit is contained in:
@@ -4,4 +4,4 @@
|
||||
* to luainstance.h changes
|
||||
*/
|
||||
#define LUA_API_VERSION_MAJOR 1
|
||||
#define LUA_API_VERSION_MINOR 75
|
||||
#define LUA_API_VERSION_MINOR 76
|
||||
|
@@ -229,6 +229,7 @@ int CLuaInstCCText::CCTextGetLines(lua_State *L)
|
||||
}
|
||||
else {
|
||||
CTextBox* ctb = D->ct->getCTextBoxObject();
|
||||
D->ct->initCCText();
|
||||
if (ctb)
|
||||
lines = (lua_Integer)ctb->getLines();
|
||||
}
|
||||
|
Reference in New Issue
Block a user