diff options
Diffstat (limited to 'minui/resources.cpp')
-rw-r--r-- | minui/resources.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/minui/resources.cpp b/minui/resources.cpp index 9c69030da..c0f9c5c85 100644 --- a/minui/resources.cpp +++ b/minui/resources.cpp @@ -372,7 +372,9 @@ int res_create_alpha_surface(const char* name, GRSurface** pSurface) { // This function tests if a locale string stored in PNG (prefix) matches // the locale string provided by the system (locale). bool matches_locale(const char* prefix, const char* locale) { - if (locale == NULL) return false; + if (locale == nullptr) { + return false; + } // Return true if the whole string of prefix matches the top part of // locale. For instance, prefix == "en" matches locale == "en_US"; |