diff options
Diffstat (limited to '')
-rw-r--r-- | height-map-display/src/map/square.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/height-map-display/src/map/square.c b/height-map-display/src/map/square.c index 707f8b7..1d74ff5 100644 --- a/height-map-display/src/map/square.c +++ b/height-map-display/src/map/square.c @@ -15,7 +15,7 @@ Square* init_square(Node *nodes[4], Terrain_Type terrain) { } void change_square_height(Square* square, float diff) { - for (int i; i < 4; i++) { - square->nodes[i]->elevation = square->nodes[i]->elevation + diff; + for (int i = 0; i < 4; i++) { + square->nodes[i]->elevation = square->nodes[i]->elevation + diff; } } |