mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
BattleStart pack now uses unique_ptr
This commit is contained in:
@ -2005,11 +2005,10 @@ void BattleStart::applyGs(CGameState *gs)
|
||||
{
|
||||
assert(battleID == gs->nextBattleID);
|
||||
|
||||
gs->currentBattles.emplace_back(info);
|
||||
|
||||
info->battleID = gs->nextBattleID;
|
||||
info->localInit();
|
||||
|
||||
gs->currentBattles.push_back(std::move(info));
|
||||
gs->nextBattleID = BattleID(gs->nextBattleID.getNum() + 1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user