summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-23 13:12:19 +0000
committerrubidium <rubidium@openttd.org>2013-11-23 13:12:19 +0000
commitb3e93d65208f74802595b12e682d98a4d534a328 (patch)
tree992b20c16adccf478fb80f75fd1c0805044e709e /src/script
parent2e54c8fdfa237f84e8d48b30bf4811ba7ed84327 (diff)
downloadopenttd-b3e93d65208f74802595b12e682d98a4d534a328.tar.xz
(svn r26057) -Fix: a number of possibly uninitialised variables
Diffstat (limited to 'src/script')
-rw-r--r--src/script/script_info.hpp1
-rw-r--r--src/script/script_instance.cpp1
-rw-r--r--src/script/script_storage.hpp3
3 files changed, 5 insertions, 0 deletions
diff --git a/src/script/script_info.hpp b/src/script/script_info.hpp
index 4ed160726..ae341a7d8 100644
--- a/src/script/script_info.hpp
+++ b/src/script/script_info.hpp
@@ -32,6 +32,7 @@ static const int MAX_GET_SETTING_OPS = 100000;
class ScriptInfo : public SimpleCountedObject {
public:
ScriptInfo() :
+ engine(NULL),
SQ_instance(NULL),
main_script(NULL),
tar_file(NULL),
diff --git a/src/script/script_instance.cpp b/src/script/script_instance.cpp
index 33a0c4d10..7e4766fdb 100644
--- a/src/script/script_instance.cpp
+++ b/src/script/script_instance.cpp
@@ -49,6 +49,7 @@ static void PrintFunc(bool error_msg, const SQChar *message)
ScriptInstance::ScriptInstance(const char *APIName) :
engine(NULL),
+ versionAPI(NULL),
controller(NULL),
storage(NULL),
instance(NULL),
diff --git a/src/script/script_storage.hpp b/src/script/script_storage.hpp
index 50e2b8dd5..8fe1e1732 100644
--- a/src/script/script_storage.hpp
+++ b/src/script/script_storage.hpp
@@ -76,6 +76,9 @@ public:
new_vehicle_id (0),
new_sign_id (0),
new_group_id (0),
+ new_goal_id (0),
+ new_story_page_id (0),
+ new_story_page_element_id(0),
/* calback_value (can't be set) */
road_type (INVALID_ROADTYPE),
rail_type (INVALID_RAILTYPE),