Small code style cleanup

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-07-21 21:17:55 -03:00
parent 34ebe18f14
commit 518ed6f524
3 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ bool File::open(Mode mode)
throw love::Exception("Could not open file %s. Does not exist.", filename.c_str());
// Check whether the write directory is set.
if ((mode == MODE_APPEND || mode == MODE_WRITE) && (PHYSFS_getWriteDir() == 0) && !hack_setupWriteDirectory())
if ((mode == MODE_APPEND || mode == MODE_WRITE) && (PHYSFS_getWriteDir() == nullptr) && !hack_setupWriteDirectory())
throw love::Exception("Could not set write directory.");
// File already open?