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:
parent
d74127cb84
commit
784f6b973b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user