aboutsummaryrefslogtreecommitdiff
path: root/src/magic.hh
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-06-25 10:09:17 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-06-25 10:09:17 -0300
commitea319bc2fbef91e3ea062be554b215756648d1d3 (patch)
treeaa26422a754346e9881e5e0b510f78fd4cfe068c /src/magic.hh
parent8bc2e5dc3a523af471065752a534d20d878c60b0 (diff)
downloadgame-ea319bc2fbef91e3ea062be554b215756648d1d3.tar.gz
game-ea319bc2fbef91e3ea062be554b215756648d1d3.zip
finish `crnonpl.cc`
Diffstat (limited to 'src/magic.hh')
-rw-r--r--src/magic.hh7
1 files changed, 7 insertions, 0 deletions
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