From 5e6c109d35d1296c895fe07e76605a87e2657793 Mon Sep 17 00:00:00 2001 From: sirlemonhead Date: Fri, 3 Jan 2020 21:56:02 +0000 Subject: [PATCH] PCExhumed: Correct variable name/usage in runlist channel loop. --- source/exhumed/src/init.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/exhumed/src/init.cpp b/source/exhumed/src/init.cpp index 78ec790f7..9708234eb 100644 --- a/source/exhumed/src/init.cpp +++ b/source/exhumed/src/init.cpp @@ -907,10 +907,10 @@ void LoadObjects() InitRa(); InitChunks(); - for (int nSprite = 0; nSprite < kMaxSprites; nSprite++) + for (int nChannel = 0; nChannel < kMaxChannels; nChannel++) { - runlist_ChangeChannel(nSprite, 0); - runlist_ReadyChannel(nSprite); + runlist_ChangeChannel(nChannel, 0); + runlist_ReadyChannel(nChannel); } nCamerax = initx;