mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-12-25 01:00:43 -05:00
build: resolve 2107 instances of -Wdelete-non-virtual-dtor
scripts/Y2K.cpp:467:5: warning: deleting object of polymorphic class type "LevelScript_0000" which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 467 | delete ((LevelScript_0000 *)ptr);
This commit is contained in:
@@ -136,7 +136,7 @@ DLLEXPORT int STDCALL SaveRestoreState(void *file_ptr, uint8_t saving_state);
|
||||
class BaseScript {
|
||||
public:
|
||||
BaseScript();
|
||||
~BaseScript();
|
||||
virtual ~BaseScript();
|
||||
virtual int16_t CallEvent(int event, tOSIRISEventInfo *data);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user