From c5989605a5bb4d1e5726dfe472f0fe00a1e51cb5 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Mon, 20 Jan 2014 11:43:12 -0500 Subject: [PATCH] fix compiling in visual studio --- src/simulation/elements/BANG.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }