Commit ec9b06cc authored by anotherguest's avatar anotherguest

Not all compilers allow pointer comparison with anything but the pointer type...

Not all compilers allow pointer comparison with anything but the pointer type or NULL! Just wondering when the Level* level should be < 0? I think != NULL is the correct statement.Please correct if not!
parent 1f982b3b
...@@ -107,7 +107,7 @@ int Game::setBonus (int ext) { ...@@ -107,7 +107,7 @@ int Game::setBonus (int ext) {
if (bonusFile) delete[] bonusFile; if (bonusFile) delete[] bonusFile;
if (level >= 0) bonusFile = createFileName(F_BONUSMAP, ext); if (level != NULL) bonusFile = createFileName(F_BONUSMAP, ext);
else bonusFile = NULL; else bonusFile = NULL;
return E_NONE; return E_NONE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment