mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-20 19:02:41 +01:00
Codechange: Emplace std::pair into vectors.
This creates the pair in the vector, instead of creating it then copying it in.
This commit is contained in:
committed by
Peter Nelson
parent
ed2db80990
commit
40fa45a76a
@@ -2717,7 +2717,7 @@ static bool BuildTownHouse(Town *t, TileIndex tile)
|
||||
|
||||
uint cur_prob = hs.probability;
|
||||
probability_max += cur_prob;
|
||||
probs.emplace_back(std::make_pair(hs.Index(), cur_prob));
|
||||
probs.emplace_back(hs.Index(), cur_prob);
|
||||
}
|
||||
|
||||
TileIndex baseTile = tile;
|
||||
|
||||
Reference in New Issue
Block a user