Skip to content

Commit

Permalink
Fixed style param when printing big formatted texts. (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranDMC authored Mar 28, 2024
1 parent 7bf06d1 commit 398871a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cleo_plugins/Text/Text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Text

auto styleIdx = std::clamp(style, 0, (int)MsgBigStyleCount - 1);
strncpy(msgBuffBig[styleIdx], text, sizeof(msgBuffBig[styleIdx]));
CMessages::AddBigMessage(msgBuffBig[styleIdx], time, style);
CMessages::AddBigMessage(msgBuffBig[styleIdx], time, style - 1);
return OR_CONTINUE;
}

Expand Down Expand Up @@ -160,7 +160,7 @@ class Text

auto styleIdx = std::clamp(style, 0, (int)MsgBigStyleCount - 1);
strncpy(msgBuffBig[styleIdx], text, sizeof(msgBuffBig[styleIdx]));
CMessages::AddBigMessage(msgBuffBig[styleIdx], time, style);
CMessages::AddBigMessage(msgBuffBig[styleIdx], time, style - 1);
return OR_CONTINUE;
}

Expand Down

0 comments on commit 398871a

Please sign in to comment.