diff options
author | rubidium <rubidium@openttd.org> | 2011-12-17 23:16:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-12-17 23:16:16 +0000 |
commit | 50b63c587087733b2d3b059e10a10eba748c0166 (patch) | |
tree | 1f004d4165d0434bf51e5f848d566e063a4b33af /src/strgen/strgen.cpp | |
parent | 89c263c2df3f7d457716ae5cc8c5cf0e8eb7d520 (diff) | |
download | openttd-50b63c587087733b2d3b059e10a10eba748c0166.tar.xz |
(svn r23585) -Codechange: replace some magic numbers with less magic constants
Diffstat (limited to 'src/strgen/strgen.cpp')
-rw-r--r-- | src/strgen/strgen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp index 4ca02a1a7..0b40e02c4 100644 --- a/src/strgen/strgen.cpp +++ b/src/strgen/strgen.cpp @@ -529,7 +529,7 @@ int CDECL main(int argc, char *argv[]) mkpath(pathbuf, lengthof(pathbuf), src_dir, "english.txt"); /* parse master file */ - StringData data; + StringData data(TAB_COUNT); FileStringReader master_reader(data, pathbuf, true, false); master_reader.ParseFile(); if (_errors != 0) return 1; @@ -546,7 +546,7 @@ int CDECL main(int argc, char *argv[]) mkpath(pathbuf, lengthof(pathbuf), src_dir, "english.txt"); - StringData data; + StringData data(TAB_COUNT); /* parse master file and check if target file is correct */ FileStringReader master_reader(data, pathbuf, true, false); master_reader.ParseFile(); |