Skip to content

Commit

Permalink
Fix COMMAND_DISPLAY_TEXT (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
yukani authored Oct 5, 2024
1 parent c91981e commit c9b6988
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/game_sa/Scripts/Commands/Text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ void DisplayText(CVector2D pos, const char* gxtKey) {
assert(CTheScripts::UseTextCommands != CTheScripts::eUseTextCommandState::DISABLED);

auto* const line = &CTheScripts::IntroTextLines[CTheScripts::NumberOfIntroTextLinesThisFrame++];
line->m_Pos = pos;
line->param1 = -1;
line->param2 = -1;
strcpy_s(line->m_szGxtEntry, gxtKey);
}

Expand Down

0 comments on commit c9b6988

Please sign in to comment.