fix bad string comparison.

This commit is contained in:
Christoph Oelckers 2024-10-19 13:13:11 +02:00 committed by Rachael Alexanderson
parent 6921bf18ce
commit b5fdd6deff
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -163,7 +163,7 @@ CCMD (mapchecksum)
for (int i = 1; i < argv.argc(); ++i) for (int i = 1; i < argv.argc(); ++i)
{ {
if(argv[i] == "*") if(!strcmp(argv[i], "*"))
{ {
const char *wadname = fileSystem.GetResourceFileName(fileSystem.GetFileContainer(level.lumpnum)); const char *wadname = fileSystem.GetResourceFileName(fileSystem.GetFileContainer(level.lumpnum));