From abee28a96aaa7e5fe93c7b2dfe6678e178b29f3e Mon Sep 17 00:00:00 2001 From: driAn Date: Mon, 8 Dec 2008 22:22:23 +0000 Subject: [PATCH] fixed deconstructor inheritance git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3956 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/entity.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/src/entity.h b/source/src/entity.h index 764bc086..62b06475 100644 --- a/source/src/entity.h +++ b/source/src/entity.h @@ -92,10 +92,11 @@ enum { SM_NONE = 0, SM_DEATHCAM, SM_FOLLOW1ST, SM_FOLLOW3RD, SM_FOLLOW3RD_TRANSP class worldobject { - +public: + virtual ~worldobject() {}; }; -class physent : worldobject +class physent : public worldobject { public: vec o, vel; // origin, velocity