From f2e50161a5abbbad333afcf05fb9723c91817349 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 6 Nov 2020 22:02:14 +1100 Subject: [PATCH] - Exhumed: Fix issues on start of Level 20 following changes in 0c95aee8f54cf6ec8ad8367a4e7f57506e359b41. * Fixes #152. --- source/exhumed/src/object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/exhumed/src/object.cpp b/source/exhumed/src/object.cpp index 4beda230f..a8017346b 100644 --- a/source/exhumed/src/object.cpp +++ b/source/exhumed/src/object.cpp @@ -1347,7 +1347,7 @@ int BuildSpark(int nSprite, int nVal) if (var_14 < 0) { return -1; } - auto spr = &sprite[nSprite]; + auto spr = &sprite[var_14]; assert(var_14 < kMaxSprites);