diff options
Diffstat (limited to 'src/magic.hh')
| -rw-r--r-- | src/magic.hh | 7 |
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 |
