diff options
Diffstat (limited to 'src/resources/loaders/subimagesetloader.cpp')
-rw-r--r-- | src/resources/loaders/subimagesetloader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/loaders/subimagesetloader.cpp b/src/resources/loaders/subimagesetloader.cpp index 4aefb4c2e..ef47b164d 100644 --- a/src/resources/loaders/subimagesetloader.cpp +++ b/src/resources/loaders/subimagesetloader.cpp @@ -43,13 +43,13 @@ namespace int height; static Resource *load(const void *const v) { - if (!v) + if (v == nullptr) return nullptr; const SubImageSetLoader *const rl = static_cast<const SubImageSetLoader *>(v); - if (!rl->parent) + if (rl->parent == nullptr) return nullptr; ImageSet *const res = new ImageSet(rl->parent, rl->width, rl->height); @@ -62,7 +62,7 @@ ImageSet *Loader::getSubImageSet(Image *const parent, const int width, const int height) { - if (!parent) + if (parent == nullptr) return nullptr; const SubImageSetLoader rl = { parent, width, height }; |