mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-12 08:00:05 -04: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:
@@ -56,7 +56,7 @@ tScriptInfo ScriptInfo[MAX_IDS] = {{ID_SHIELD_ORB, "Shield"}, {ID_ENERGY_ORB, "E
|
||||
class BaseObjScript {
|
||||
public:
|
||||
BaseObjScript();
|
||||
~BaseObjScript();
|
||||
virtual ~BaseObjScript();
|
||||
virtual int16_t CallEvent(int event, tOSIRISEventInfo *data);
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user