Mercurial > mm7
comparison UI/UiGame.cpp @ 1983:5cd26f2c6904
small fix
author | Ritor1 |
---|---|
date | Fri, 01 Nov 2013 17:29:49 +0600 |
parents | c1c74df0a33e |
children | 985fff9fb62d |
comparison
equal
deleted
inserted
replaced
1982:2647e2f820a6 | 1983:5cd26f2c6904 |
---|---|
374 if (pNPC->uProfession) | 374 if (pNPC->uProfession) |
375 { | 375 { |
376 assert(pNPC->uProfession < sizeof(aNPCProfessionNames) / sizeof(*aNPCProfessionNames.data())); // sometimes buffer overflows; errors emerge both here and in dialogue text | 376 assert(pNPC->uProfession < sizeof(aNPCProfessionNames) / sizeof(*aNPCProfessionNames.data())); // sometimes buffer overflows; errors emerge both here and in dialogue text |
377 sprintfex(pTmpBuf.data(), pGlobalTXT_LocalizationStrings[429], pNPC->pName, aNPCProfessionNames[pNPC->uProfession]);//^Pi[%s] %s | 377 sprintfex(pTmpBuf.data(), pGlobalTXT_LocalizationStrings[429], pNPC->pName, aNPCProfessionNames[pNPC->uProfession]);//^Pi[%s] %s |
378 } | 378 } |
379 else | 379 else if (pNPC->pName) |
380 strcpy(pTmpBuf.data(), pNPC->pName); | 380 strcpy(pTmpBuf.data(), pNPC->pName); |
381 | 381 |
382 window.DrawTitleText(pFontArrus, 483, 112, ui_game_dialogue_npc_name_color, pTmpBuf.data(), 3); | 382 window.DrawTitleText(pFontArrus, 483, 112, ui_game_dialogue_npc_name_color, pTmpBuf.data(), 3); |
383 pParty->GetPartyFame(); | 383 pParty->GetPartyFame(); |
384 | 384 |