mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
CLuaInstCCText: try to fix return value of CCTextGetLines()
Init was missing.
Origin commit data
------------------
Commit: 5b12952d8b
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-06-15 (Thu, 15 Jun 2017)
This commit is contained in:
@@ -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