diff options
author | rubidium <rubidium@openttd.org> | 2011-12-17 16:59:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-12-17 16:59:16 +0000 |
commit | 17c0756da276971290d9caa0d218f25e09af48e9 (patch) | |
tree | 9c27bbc838f896ccc1601519fb622e944e58f227 /src | |
parent | ad7f577931577478ab3e61fb6e62bbb25e6b9a46 (diff) | |
download | openttd-17c0756da276971290d9caa0d218f25e09af48e9.tar.xz |
(svn r23573) -Fix (r23571): MSVC doesn't like variable array sizes
Diffstat (limited to 'src')
-rw-r--r-- | src/strgen/strgen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp index 21f4d07fd..795c244d4 100644 --- a/src/strgen/strgen.cpp +++ b/src/strgen/strgen.cpp @@ -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); |