mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 21:35:42 +00:00
Use pre-increment in action point tests
This commit is contained in:
+2
-2
@@ -28,11 +28,11 @@ class ActionPointDistancesTest : public ::testing::Test {
|
||||
// P P P M P P
|
||||
|
||||
// const_cast is safe because we own the mutable buffer (map)
|
||||
for (int i = 6; i < 12; i++) {
|
||||
for (int i = 6; i < 12; ++i) {
|
||||
const_cast<Terrain*>(map->mutable_terrain()->GetMutableObject(i))
|
||||
->mutate_type(net::eagle0::shardok::storage::fb::Terrain_::Type_FOREST);
|
||||
}
|
||||
for (int i = 18; i < 24; i++) {
|
||||
for (int i = 18; i < 24; ++i) {
|
||||
const_cast<Terrain*>(map->mutable_terrain()->GetMutableObject(i))
|
||||
->mutate_type(net::eagle0::shardok::storage::fb::Terrain_::Type_RIVER);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user