mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
corrected text in vcmibuilder, corrected errors and warnings from cppcheck
This commit is contained in:
@ -678,7 +678,7 @@ void CPlayerInterface::battleStacksHealedRes(const std::vector<std::pair<ui32, u
|
||||
|
||||
//print info about life drain
|
||||
char textBuf[1000];
|
||||
sprintf(textBuf, CGI->generaltexth->allTexts[361 + textOff].c_str(), attacker->getCreature()->nameSing.c_str(),
|
||||
snprintf(textBuf, 1000, CGI->generaltexth->allTexts[361 + textOff].c_str(), attacker->getCreature()->nameSing.c_str(),
|
||||
healedStacks[0].second, defender->getCreature()->namePl.c_str());
|
||||
battleInt->console->addText(textBuf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user