Browse Source

MMD: Add virtual destructor to a class which already has virtual functions

Turo Lamminen 7 năm trước cách đây
mục cha
commit
1e9f329e6d
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      code/MMDPmxParser.h

+ 1 - 0
code/MMDPmxParser.h

@@ -87,6 +87,7 @@ namespace pmx
 	{
 	public:
 		virtual void Read(std::istream *stream, PmxSetting *setting) = 0;
+		virtual ~PmxVertexSkinning() {}
 	};
 
 	class PmxVertexSkinningBDEF1 : public PmxVertexSkinning