1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 09:59:10 +00:00

(svn r23573) -Fix (r23571): MSVC doesn't like variable array sizes

This commit is contained in:
rubidium
2011-12-17 16:59:16 +00:00
parent ad7f577931
commit 17c0756da2

View File

@@ -1316,7 +1316,7 @@ struct LanguageWriter {
*/
void WriteLang(const StringData &data)
{
uint in_use[data.tabs];
uint *in_use = AllocaM(uint, data.tabs);
for (size_t tab = 0; tab < data.tabs; tab++) {
uint n = data.CountInUse(tab);