Skip to content

Commit

Permalink
DEVTOOLS: Fix incorrect argc checks in create_titanic
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jun 19, 2017
1 parent c92e1ec commit f3c7aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devtools/create_titanic/create_titanic_dat.cpp
Expand Up @@ -1737,7 +1737,7 @@ int main(int argc, char *argv[]) {
}
resEng.loadFromEXE(argv[1]);

if (argc >= 3) {
if (argc == 4) {
resGer.loadFromEXE(argv[2]);
}

Expand All @@ -1764,7 +1764,7 @@ int main(int argc, char *argv[]) {
writeHeader();
writeData();

if (argc >= 3) {
if (argc == 4) {
inputFile.open(argv[2]);
_version = GERMAN;
writeGermanData();
Expand Down

0 comments on commit f3c7aa9

Please sign in to comment.