mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-05-01 01:21:41 -04:00
silence compile warning .
This commit is contained in:
parent
eada71ea2a
commit
475d62a5aa
1 changed files with 3 additions and 2 deletions
|
@ -54,8 +54,9 @@ inline CString GetUnitPictureFilename(const CString& lpUnitName, DWORD dwPicInde
|
|||
{
|
||||
CIniFile& ini = Map->GetIniFile();
|
||||
|
||||
char n[50];
|
||||
_itoa_s(dwPicIndex, n, 10);
|
||||
CString n;
|
||||
n.Format("%d", dwPicIndex);
|
||||
|
||||
// store differently for each type even they shares same image,
|
||||
// because they can have different components, e.g. turret image
|
||||
if (pics.find(lpUnitName + n) != pics.end()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue