TRECISION: Fix regression - incorrect text assignment

This commit is contained in:
Filippos Karapetis 2021-05-09 15:03:55 +03:00 committed by SupSuper
parent 128907ff12
commit ef79cb8ed0
2 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ struct SDText {
Common::String text;
void set(SDText org);
void set(Common::Rect rect, Common::Rect subtitleRect, uint16 tcol, uint16 scol, Common::String text);
void set(Common::Rect rect, Common::Rect subtitleRect, uint16 tcol, uint16 scol, Common::String pText);
void DText(uint16 *frameBuffer = nullptr);
uint16 checkDText();

View file

@ -33,12 +33,12 @@ void SDText::set(SDText org) {
set(org._rect, org._subtitleRect, org.tcol, org.scol, org.text);
}
void SDText::set(Common::Rect rect, Common::Rect subtitleRect, uint16 ptcol, uint16 pscol, Common::String text) {
void SDText::set(Common::Rect rect, Common::Rect subtitleRect, uint16 ptcol, uint16 pscol, Common::String pText) {
_rect = rect;
_subtitleRect = subtitleRect;
tcol = ptcol;
scol = pscol;
text = text;
text = pText;
}
/*-------------------------------------------------------------