summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-23 18:13:46 +0000
committerrubidium <rubidium@openttd.org>2013-11-23 18:13:46 +0000
commitd336bf65df008262be61153f7ad0446e64325ad0 (patch)
tree8d921ad665307ef495e73c19235022446ee42236
parentbe6b64f4e65bfa7b866ad2fbe9518e6f23d75045 (diff)
downloadopenttd-d336bf65df008262be61153f7ad0446e64325ad0.tar.xz
(svn r26073) -Cleanup: unneeded check against NULL
-rw-r--r--src/base_media_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base_media_func.h b/src/base_media_func.h
index 0dfc523e8..6322ba1db 100644
--- a/src/base_media_func.h
+++ b/src/base_media_func.h
@@ -125,7 +125,7 @@ bool BaseSet<T, Tnum_files, Tsearch_in_tars>::FillSetDetails(IniFile *ini, const
}
/* Then find the warning message when the file's missing */
- item = filename == NULL ? NULL : origin->GetItem(filename, false);
+ item = origin->GetItem(filename, false);
if (item == NULL) item = origin->GetItem("default", false);
if (item == NULL) {
DEBUG(grf, 1, "No origin warning message specified for: %s", filename);