summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-04-13 21:58:56 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-08 12:39:34 +0200
commitc097bc9d7d610b613f76152b3cdcb9be2af7a1c7 (patch)
tree1f6f7fad0d4b12626bc626a08127ebf50cd6721b /src/newgrf.cpp
parentb144e56b2c4d92baa868435818a99faa8ed06439 (diff)
downloadopenttd-c097bc9d7d610b613f76152b3cdcb9be2af7a1c7.tar.xz
Codechange: let NewGRF sounds make use of RandomAccessFile instead of the FIO slot functions
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 3a4fe1261..b51a18b43 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -7553,7 +7553,7 @@ static void LoadGRFSound(size_t offs, SoundEntry *sound)
if (offs != SIZE_MAX) {
/* Sound is present in the NewGRF. */
- sound->file_slot = _cur.file_index;
+ sound->file = FioGetRandomAccessFile(_cur.file_index);
sound->file_offset = offs;
sound->grf_container_ver = _cur.grf_container_ver;
}