diff options
author | rubidium <rubidium@openttd.org> | 2013-02-08 20:34:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-02-08 20:34:27 +0000 |
commit | 4e61c1770dc584229afdca7a37ce82dbf121b9d4 (patch) | |
tree | a37ac382e65ac4a0db3440365b8a461387edd65e /src/script/api/script_text.hpp | |
parent | bb225ae39e93dabda532ee449c18b49de98b00af (diff) | |
download | openttd-4e61c1770dc584229afdca7a37ce82dbf121b9d4.tar.xz |
(svn r24982) -Fix [FS#5465]: [Script] Crash when passing too many parameters
Diffstat (limited to 'src/script/api/script_text.hpp')
-rw-r--r-- | src/script/api/script_text.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/api/script_text.hpp b/src/script/api/script_text.hpp index 43a6037ef..6dd022bb7 100644 --- a/src/script/api/script_text.hpp +++ b/src/script/api/script_text.hpp @@ -132,9 +132,10 @@ private: * instances, while writing in the same buffer. * @param p The current position in the buffer. * @param lastofp The last position valid in the buffer. + * @param param_count The number of parameters that are in the string. * @return The new current position in the buffer. */ - char *_GetEncodedText(char *p, char *lastofp); + char *_GetEncodedText(char *p, char *lastofp, int ¶m_count); /** * Set a parameter, where the value is the first item on the stack. |