summaryrefslogtreecommitdiff
path: root/src/sound.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-02-24 20:59:17 +0000
committersmatz <smatz@openttd.org>2009-02-24 20:59:17 +0000
commit34bfb3510567e66b6bb584ad7f8ec48ff2b5095e (patch)
tree50574d6b6befd846433d33e7a7a619e719b57d0a /src/sound.cpp
parent471c770a08f159af22ce9d7dcdbbb0e675ca8bac (diff)
downloadopenttd-34bfb3510567e66b6bb584ad7f8ec48ff2b5095e.tar.xz
(svn r15568) -Cleanup: *allocT/AllocaM doesn't return NULL when allocating fails
Diffstat (limited to 'src/sound.cpp')
-rw-r--r--src/sound.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/sound.cpp b/src/sound.cpp
index 586d12c1a..9995ec190 100644
--- a/src/sound.cpp
+++ b/src/sound.cpp
@@ -111,7 +111,6 @@ static bool SetBankSource(MixerChannel *mc, const FileEntry *fe)
if (fe->file_size == 0) return false;
int8 *mem = MallocT<int8>(fe->file_size);
- if (mem == NULL) return false;
FioSeekToFile(fe->file_slot, fe->file_offset);
FioReadBlock(mem, fe->file_size);