Fix -Wdelete-incomplete in CDefaultCustomWeaponEntityFactory::ReleaseData()

GCC warns about attempting to delete a void-pointer, since it will not
be able to invoke its destructor. Fix by casing it to the expected
type.
This commit is contained in:
Alexander 'z33ky' Hirsch 2024-09-05 23:42:16 +02:00
parent e9c45e5235
commit df6adcc5e9

View File

@ -107,7 +107,7 @@ public:
virtual void ReleaseData(const void* pData) const
{
delete pData;
delete (Data*)pData;
}
};