diff --git a/src/simulation/elements/BANG.cpp b/src/simulation/elements/BANG.cpp index 5ff292d2b..1a3eec385 100644 --- a/src/simulation/elements/BANG.cpp +++ b/src/simulation/elements/BANG.cpp @@ -73,7 +73,9 @@ int Element_BANG::update(UPDATE_FUNC_ARGS) { if ((pmap[y][x]>>8 == i)) { - sim->flood_prop(x, y, offsetof(Particle, tmp), (PropertyValue){.Integer = 2}, StructProperty::Integer); + PropertyValue value; + value.Integer = 2; + sim->flood_prop(x, y, offsetof(Particle, tmp), value, StructProperty::Integer); } parts[i].tmp = 2; }