From 13175df53d588719555b2eaa12a8b4fc9ac5e421 Mon Sep 17 00:00:00 2001 From: galaxyhaxz Date: Wed, 9 Feb 2022 12:36:10 -0600 Subject: [PATCH] Add vanilla trap bugfix --- Source/objects.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/objects.cpp b/Source/objects.cpp index 7ff7acdae..c923c8ddb 100644 --- a/Source/objects.cpp +++ b/Source/objects.cpp @@ -308,6 +308,8 @@ bool RndLocOk(int xp, int yp) bool CanPlaceWallTrap(int xp, int yp) { + if (dObject[xp][yp] != 0) + return false; if (TileContainsSetPiece({ xp, yp })) return false;