summaryrefslogtreecommitdiff
path: root/Source/Core/DSPCore/Src/DSPCore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DSPCore/Src/DSPCore.cpp')
-rw-r--r--Source/Core/DSPCore/Src/DSPCore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DSPCore/Src/DSPCore.cpp b/Source/Core/DSPCore/Src/DSPCore.cpp
index b42e17cac5..aff0a26721 100644
--- a/Source/Core/DSPCore/Src/DSPCore.cpp
+++ b/Source/Core/DSPCore/Src/DSPCore.cpp
@@ -54,7 +54,7 @@ static bool LoadRom(const char *fname, int size_in_words, u16 *rom)
fclose(pFile);
// Byteswap the rom.
- for (int i = 0; i < DSP_IROM_SIZE; i++)
+ for (int i = 0; i < size_in_words; i++)
rom[i] = Common::swap16(rom[i]);
return true;