summaryrefslogtreecommitdiff
path: root/src/simulation/elements/BANG.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-05-14 23:10:10 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-05-14 23:10:10 (GMT)
commit45563e97e813cfd21724ad1111e5de3e04679e1a (patch)
tree28d6e7d257c8790fa4ac892cb051bd9a86f3681d /src/simulation/elements/BANG.cpp
parent0b4ad4f25cf168226677f648cf4cadfdb6caa59a (diff)
downloadpowder-45563e97e813cfd21724ad1111e5de3e04679e1a.zip
powder-45563e97e813cfd21724ad1111e5de3e04679e1a.tar.gz
Make flood_prop use PropertyType from StructProperty, Property tool works
Diffstat (limited to 'src/simulation/elements/BANG.cpp')
-rw-r--r--src/simulation/elements/BANG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/elements/BANG.cpp b/src/simulation/elements/BANG.cpp
index ac538ca..ea22b05 100644
--- a/src/simulation/elements/BANG.cpp
+++ b/src/simulation/elements/BANG.cpp
@@ -76,7 +76,7 @@ int Element_BANG::update(UPDATE_FUNC_ARGS)
else if(parts[i].tmp==1)
{
int tempvalue = 2;
- sim->flood_prop(x, y, offsetof(Particle, tmp), &tempvalue, 0);
+ sim->flood_prop(x, y, offsetof(Particle, tmp), &tempvalue, StructProperty::Integer);
}
else if(parts[i].tmp==2)
{