summaryrefslogtreecommitdiffhomepage
path: root/src/scenery.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-22 18:55:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-22 18:55:41 +0100
commit906f56a842c0e0e706087f80607ff6d816a23280 (patch)
tree730ed20091649482691baeaeae753dd40c468402 /src/scenery.cpp
parent49f455887a29a2a879e330dca9e050296e617720 (diff)
w
Diffstat (limited to 'src/scenery.cpp')
-rw-r--r--src/scenery.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/scenery.cpp b/src/scenery.cpp
index f3a11f6d..24431a6b 100644
--- a/src/scenery.cpp
+++ b/src/scenery.cpp
@@ -152,7 +152,10 @@ scenery::scenery(object_id id, struct chunk& c, const scenery_proto& proto) :
object{id, c, proto}, sc_type{proto.sc_type}, active{proto.active},
closing{proto.closing}, interactive{proto.interactive}
{
- fm_debug_assert(atlas); // todo add placeholder graphic
+#ifndef FM_NO_DEBUG
+ if (id != 0)
+ fm_debug_assert(atlas); // todo add placeholder graphic
+#endif
}
} // namespace floormat