summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-26 13:42:09 +0000
committerrubidium <rubidium@openttd.org>2013-11-26 13:42:09 +0000
commit5e3aa728552fce5cd2ae8a544881c722778d01d2 (patch)
tree6695093021e24668ea4535e9ce8d64312de23be4 /src
parent02059ab4a78889cd60b83fa032f7a4b1a4921a96 (diff)
downloadopenttd-5e3aa728552fce5cd2ae8a544881c722778d01d2.tar.xz
(svn r26124) -Fix: make sure all members of the default string iterator are initialised
Diffstat (limited to 'src')
-rw-r--r--src/string.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.cpp b/src/string.cpp
index 301f150f8..d33356e6e 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -805,7 +805,7 @@ class DefaultStringIterator : public StringIterator
size_t cur_pos; ///< Current iteration position.
public:
- DefaultStringIterator() : string(NULL)
+ DefaultStringIterator() : string(NULL), len(0), cur_pos(0)
{
}