1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Apply suggestions from code review

Co-authored-by: Andrii Danylchenko <danilchenko.andrij@gmail.com>
This commit is contained in:
Alexander Shishkin 2021-02-20 02:31:00 +03:00 committed by GitHub
parent d74127cb84
commit 784f6b973b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -292,10 +292,10 @@ void BattleCast::cast(ServerCallback * server, Target target)
if(!mirrorTargets.empty())
{
auto mirrorDesination = (*RandomGeneratorUtil::nextItem(mirrorTargets, *server->getRNG()));
auto mirrorDestination = (*RandomGeneratorUtil::nextItem(mirrorTargets, *server->getRNG()));
Target mirrorTarget;
mirrorTarget.emplace_back(mirrorDesination);
mirrorTarget.emplace_back(mirrorDestination);
BattleCast mirror(*this, mainTarget);
mirror.cast(server, mirrorTarget);