From ef3ed833c2e73907f5d17eb9fd2037ff412cbae4 Mon Sep 17 00:00:00 2001 From: RenechCDDA <84619419+RenechCDDA@users.noreply.github.com> Date: Sun, 5 Jan 2025 06:43:37 -0500 Subject: [PATCH] Check validity of plant data on load --- src/mapdata.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mapdata.cpp b/src/mapdata.cpp index 6bbad4ffa1df3..dc06148481753 100644 --- a/src/mapdata.cpp +++ b/src/mapdata.cpp @@ -1321,6 +1321,13 @@ void furn_t::check() const e.str().c_str() ); } } + if( plant && !plant->transform.is_valid() ) { + debugmsg( "Invalid furniture %s for plant transform in furn %s", plant->transform.c_str(), + id.c_str() ); + } + if( plant && !plant->base.is_valid() ) { + debugmsg( "Invalid furniture %s for plant base in furn %s", plant->base.c_str(), id.c_str() ); + } } int activity_byproduct::roll() const