summaryrefslogtreecommitdiff
path: root/src/strgen
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-12-17 16:59:16 +0000
committerrubidium <rubidium@openttd.org>2011-12-17 16:59:16 +0000
commit17c0756da276971290d9caa0d218f25e09af48e9 (patch)
tree9c27bbc838f896ccc1601519fb622e944e58f227 /src/strgen
parentad7f577931577478ab3e61fb6e62bbb25e6b9a46 (diff)
downloadopenttd-17c0756da276971290d9caa0d218f25e09af48e9.tar.xz
(svn r23573) -Fix (r23571): MSVC doesn't like variable array sizes
Diffstat (limited to 'src/strgen')
-rw-r--r--src/strgen/strgen.cpp2
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);