Skip to content

Commit

Permalink
agf2dlgasc: fixed DialogScriptConverter stopping too early
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Apr 25, 2024
1 parent 3ace7db commit db4efc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/data/dialogscriptconv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ String DialogScriptConverter::Convert()
String ags_script =
String::FromFormat("function _run_dialog%d(int entryPoint) { \n", _dialog.ID);

for (String thisLine = sr.ReadLine(); !thisLine.IsEmpty(); thisLine = sr.ReadLine())
for (String thisLine = sr.ReadLine(); !sr.EOS(); thisLine = sr.ReadLine())
{
_lineNumber++;
String s = ConvertLine(thisLine);
Expand Down

0 comments on commit db4efc8

Please sign in to comment.