summaryrefslogtreecommitdiff
path: root/src/environment.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-01-02 20:26:33 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-01-02 20:26:33 +0200
commit46302813186253a993b9f901fa5f3097961d3229 (patch)
treee06c5cbb895cc2938e0c4e1102c6150fe72df70a /src/environment.h
parentcd0019acd28bf7d2b6de44fc366804f0d17c80b2 (diff)
downloadminetest-46302813186253a993b9f901fa5f3097961d3229.tar.gz
minetest-46302813186253a993b9f901fa5f3097961d3229.tar.bz2
minetest-46302813186253a993b9f901fa5f3097961d3229.zip
Fix ABM trigger chance being often way too high
Diffstat (limited to 'src/environment.h')
-rw-r--r--src/environment.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/environment.h b/src/environment.h
index 3ebbee910..f8df77f79 100644
--- a/src/environment.h
+++ b/src/environment.h
@@ -130,7 +130,8 @@ struct ABMWithState
float timer;
ABMWithState(ActiveBlockModifier *abm_):
- abm(abm_)
+ abm(abm_),
+ timer(0)
{}
};