From ea319bc2fbef91e3ea062be554b215756648d1d3 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Wed, 25 Jun 2025 10:09:17 -0300 Subject: finish `crnonpl.cc` --- src/magic.hh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/magic.hh') diff --git a/src/magic.hh b/src/magic.hh index adc648f..ff14c48 100644 --- a/src/magic.hh +++ b/src/magic.hh @@ -19,6 +19,13 @@ struct TImpact{ virtual void handleCreature(TCreature *Victim); // VTABLE[1] virtual bool isAggressive(void); // VTABLE[2] + // NOTE(fusion): I don't think the original version had a destructor declared + // here but the compiler complains when calling delete (which seems to only be + // used in `TMonster::IdleStimulus`). + virtual ~TImpact(void){ + // no-op + } + // DATA // ========================================================================= //void *VTABLE; // IMPLICIT -- cgit v1.2.3