mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-28 20:06:41 +00:00
BookTextParser: fixed infinitive loop
This commit is contained in:
parent
ba97c8f7d6
commit
3b64389668
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ std::vector<std::string> BookTextParser::split(std::string text, const int width
|
||||||
|
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
if (currentHeight > height-spacing)
|
if (currentHeight > height-spacing && currentText.size() != currentWord.size())
|
||||||
{
|
{
|
||||||
// remove the last word
|
// remove the last word
|
||||||
currentText.erase(currentText.size()-currentWord.size(), currentText.size());
|
currentText.erase(currentText.size()-currentWord.size(), currentText.size());
|
||||||
|
|
Loading…
Reference in a new issue