From 4261a0c592aeef4745fdb83bdd5079f4d4dd1887 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 12 Aug 2017 12:30:42 +0200 Subject: [PATCH] - print a warning if a decal definition cannot find an animator. This is important because DECALDEF cannot tentatively find animators declared after the decal. --- src/decallib.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/decallib.cpp b/src/decallib.cpp index aa6fa38b4..c4af2cbe6 100644 --- a/src/decallib.cpp +++ b/src/decallib.cpp @@ -562,6 +562,10 @@ void FDecalLib::ParseDecal (FScanner &sc) case DECAL_ANIMATOR: sc.MustGetString (); newdecal.Animator = FindAnimator (sc.String); + if (newdecal.Animator == nullptr) + { + sc.ScriptMessage("Unable to find animator %s", sc.String); + } break; case DECAL_LOWERDECAL: