Mercurial > mm7
diff UIPopup.cpp @ 1217:b237a61e61d3
sprintf didn't use .data member of new arrays
author | Grumpy7 |
---|---|
date | Sun, 09 Jun 2013 17:35:10 +0200 |
parents | 96a81634669e |
children | fac7751b2dc9 |
line wrap: on
line diff
--- a/UIPopup.cpp Sun Jun 09 16:30:07 2013 +0200 +++ b/UIPopup.cpp Sun Jun 09 17:35:10 2013 +0200 @@ -1694,7 +1694,7 @@ sprintfex(pTmpBuf2.data(), pGlobalTXT_LocalizationStrings[538], v16, v15 + 1); strcat(pTmpBuf.data(), "\n"); strcat(pTmpBuf.data(), pTmpBuf2.data()); - sprintf(pTmpBuf2.data(), "%s\n \n%s", pPlayerExperienceAttributeDescription, pTmpBuf); + sprintf(pTmpBuf2.data(), "%s\n \n%s", pPlayerExperienceAttributeDescription, pTmpBuf.data()); if ( pGlobalTXT_LocalizationStrings[83] && pTmpBuf2.data() ) sub_4179BC_draw_tooltip(pGlobalTXT_LocalizationStrings[83], pTmpBuf2.data()); break;