aboutsummaryrefslogtreecommitdiff
path: root/YellowTileBehavior.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'YellowTileBehavior.cpp')
-rw-r--r--YellowTileBehavior.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/YellowTileBehavior.cpp b/YellowTileBehavior.cpp
index 0c2ee35..4e35733 100644
--- a/YellowTileBehavior.cpp
+++ b/YellowTileBehavior.cpp
@@ -26,8 +26,8 @@ void YellowTileBehavior::update(Tile & tile) {
for (unsigned int i = 0; i < new_artists; i++) {
if (i >= 2) break;
ArtistData new_data = {
- .x = static_cast<float>(tile.x),
- .y = static_cast<float>(tile.y),
+ .x = static_cast<float>(tile.data.x),
+ .y = static_cast<float>(tile.data.y),
};
float velocity = random_float(rng);
random_bool(rng) ? new_data.vx = velocity : new_data.vy = velocity;