aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gob/scenery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gob/scenery.cpp b/gob/scenery.cpp
index 2de9587cf8..2a5e74b057 100644
--- a/gob/scenery.cpp
+++ b/gob/scenery.cpp
@@ -132,7 +132,7 @@ int16 scen_loadStatic(char search) {
for (i = 0; i < picsCount; i++) {
pictDescId = inter_load16();
- if (resId >= 30000) {
+ if (pictDescId >= 30000) {
ptr->pieces[i] =
(Scen_PieceDesc *) game_loadExtData(pictDescId, 0,
0);