Skip to content

Commit

Permalink
Fix page breaks when 'lang' series of commands are not used
Browse files Browse the repository at this point in the history
  • Loading branch information
drojf authored and TellowKrinkle committed Mar 19, 2022
1 parent 668320c commit 62172f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PonscripterLabel_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ int PonscripterLabel::clickNewPage(bool display_char)
{
const char* c = script_h.getStrBuf(string_buffer_offset);

if (current_read_language != -1 && current_read_language != current_language) {
if (current_read_language == -1 || current_read_language == current_language) {
clickstr_state = CLICK_NEWPAGE;
}

Expand Down

0 comments on commit 62172f3

Please sign in to comment.