summaryrefslogtreecommitdiff
path: root/src/strings_func.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2012-10-14 15:18:09 +0000
committeryexo <yexo@openttd.org>2012-10-14 15:18:09 +0000
commit2f042ea1988407524d86998dcba2672b23c8aaf6 (patch)
tree1788f3e4f40aa7d85d0e0688005b771331033a07 /src/strings_func.h
parentb5a485825b3ba6046bb0dc4c81540b6063cbb5b6 (diff)
downloadopenttd-2f042ea1988407524d86998dcba2672b23c8aaf6.tar.xz
(svn r24593) -Fix [FS#5333]: crash when a gamescript provided too many parameters to a GSText object
Diffstat (limited to 'src/strings_func.h')
-rw-r--r--src/strings_func.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/strings_func.h b/src/strings_func.h
index eef78d84e..395a80e1a 100644
--- a/src/strings_func.h
+++ b/src/strings_func.h
@@ -73,19 +73,7 @@ public:
void ClearTypeInformation();
- /**
- * Read an int64 from the argument array. The offset is increased
- * so the next time GetInt64 is called the next value is read.
- */
- int64 GetInt64(WChar type = 0)
- {
- assert(this->offset < this->num_param);
- if (this->type != NULL) {
- assert(this->type[this->offset] == 0 || this->type[this->offset] == type);
- this->type[this->offset] = type;
- }
- return this->data[this->offset++];
- }
+ int64 GetInt64(WChar type = 0);
/** Read an int32 from the argument array. @see GetInt64. */
int32 GetInt32(WChar type = 0)