Set string without copying.

This commit is contained in:
Andrey Akhmichin 2022-11-16 09:48:43 +05:00
parent 75ce27c2d3
commit 1945caa547
No known key found for this signature in database
GPG Key ID: 1F180D249B0643C0
1 changed files with 2 additions and 3 deletions

View File

@ -232,9 +232,8 @@ void CHudHalloween::MessageAdd( int type, float time, char *text )
break;
case MSG_HALLOWEEN:
int youbet = atoi(text);
sprintf(tempBuffer, "%s", billymc[youbet]);
m_pCustomMsgs[type] = new CCustomMessage(200, 200, 200, ScreenHeight / 2
+ (ScreenHeight / 4.5), 1.5, 5, time, tempBuffer);
+ (ScreenHeight / 4.5), 1.5, 5, time, billymc[youbet]);
break;
}
}
}