forked from mirror/OpenTTD
(svn r24593) -Fix [FS#5333]: crash when a gamescript provided too many parameters to a GSText object
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user