1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

Fix scripting build

This commit is contained in:
Ivan Savenko
2024-10-07 13:25:39 +00:00
parent c0f5c7c0ea
commit d0606d2dc9
4 changed files with 14 additions and 14 deletions

View File

@ -452,7 +452,7 @@ void CGameHandler::handleClientDisconnection(std::shared_ptr<CConnection> c)
out.text.appendTextID("vcmi.server.errors.playerLeft");
out.text.replaceName(playerId);
out.components.emplace_back(ComponentType::FLAG, playerId);
sendAndApply(&out);
sendAndApply(out);
}
}
}
@ -1259,7 +1259,7 @@ void CGameHandler::setResearchedSpells(const CGTownInstance * town, int level, c
cs.spells = spells;
cs.level = level;
cs.accepted = accepted;
sendAndApply(&cs);
sendAndApply(cs);
}
void CGameHandler::giveHeroBonus(GiveBonus * bonus)