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:
2017-06-15 01:01:55 +02:00
parent 030c9c496d
commit af77d15023
2 changed files with 2 additions and 1 deletions

View File

@@ -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();
}