From c8183bd9bc2116303a38b5e05adf8f5f71cf1a0b Mon Sep 17 00:00:00 2001 From: Sergey Semushin Date: Mon, 15 Apr 2019 06:25:17 +0300 Subject: [PATCH] AddObjTraps: cleanup condition. --- Source/objects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/objects.cpp b/Source/objects.cpp index abff9c211..8330e6c4e 100644 --- a/Source/objects.cpp +++ b/Source/objects.cpp @@ -765,7 +765,7 @@ void AddObjTraps() continue; oi = dObject[i][j] - 1; - if (AllObjects[object[oi]._otype].oTrapFlag == FALSE) + if (!AllObjects[object[oi]._otype].oTrapFlag) continue; if (random(144, 2) == 0) {