Added some suggested code improvements (#8331)

Fixes #8309

Thanks to @mrpond
This commit is contained in:
Lemongrass3110
2024-05-13 17:46:47 +02:00
committed by GitHub
parent 8980203f7b
commit da8229b8f5
2 changed files with 5 additions and 5 deletions

View File

@@ -4454,7 +4454,7 @@ ACMD_FUNC(mapinfo) {
clif_displaymessage(fd, atcmd_output);
if (!mapdata->skill_damage.empty()) {
clif_displaymessage(fd, msg_txt(sd, 1054)); // > [Map Skill] Name : Player, Monster, Boss Monster, Other | Caster
for (auto skilldmg : mapdata->skill_damage) {
for (const auto& skilldmg : mapdata->skill_damage) {
sprintf(atcmd_output," %s : %d%%, %d%%, %d%%, %d%% | %d",
skill_get_name(skilldmg.first),
skilldmg.second.rate[SKILLDMG_PC],