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);