Mercurial > mm7
diff UIHouses.cpp @ 1217:b237a61e61d3
sprintf didn't use .data member of new arrays
author | Grumpy7 |
---|---|
date | Sun, 09 Jun 2013 17:35:10 +0200 |
parents | fd3bea473c0c |
children | 77ea5c5f2c0b |
line wrap: on
line diff
--- a/UIHouses.cpp Sun Jun 09 16:30:07 2013 +0200 +++ b/UIHouses.cpp Sun Jun 09 17:35:10 2013 +0200 @@ -1828,8 +1828,8 @@ v46 = &v50; v45 = (unsigned int)&v49; v44 = &v48; - v43 = pTmpBuf2;*/ - sprintf(pTmpBuf.data(), "%s\n \n%s%s%s%s%s", pTmpBuf2, v48[0], v48[1], v48[2], v48[3], v48[4]); + v43 = pTmpBuf2.data();*/ + sprintf(pTmpBuf.data(), "%s\n \n%s%s%s%s%s", pTmpBuf2.data(), v48[0], v48[1], v48[2], v48[3], v48[4]); v53.DrawTitleText(pFontArrus, 0, 0x92u, 0, pTmpBuf.data(), 3u); } else @@ -2062,7 +2062,7 @@ v7 = v5->pName; v8 = TargetColor(0xFFu, 0xFFu, 0x9Bu); sprintf(pTmpBuf.data(), "\f%05d%s\f%05d", v8, v7, v6); - sprintf(pTmpBuf2.data(), dword_F8B1A4, pTmpBuf, 100 * v5->uLevel); + sprintf(pTmpBuf2.data(), dword_F8B1A4, pTmpBuf.data(), 100 * v5->uLevel); current_npc_text = pTmpBuf2.data(); memcpy(&a1, pDialogueWindow, sizeof(a1)); w.uFrameWidth = 458;