(svn r26239) -Fix: Check that there is space left in the string parameter array, before pushing NewGRF parameters to it.

This commit is contained in:
frosch
2014-01-12 18:00:02 +00:00
parent 5ab39cc651
commit 477c15383d
3 changed files with 36 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ void RewindTextRefStack();
bool UsingNewGRFTextStack();
struct TextRefStack *CreateTextRefStackBackup();
void RestoreTextRefStackBackup(struct TextRefStack *backup);
uint RemapNewGRFStringControlCode(uint scc, char *buf_start, char **buff, const char **str, int64 *argv, bool modify_argv);
uint RemapNewGRFStringControlCode(uint scc, char *buf_start, char **buff, const char **str, int64 *argv, uint argv_size, bool modify_argv);
StringID TTDPStringIDToOTTDStringIDMapping(StringID string);