mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-22 19:51:10 +03:00
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:
parent
e9c45e5235
commit
df6adcc5e9
@ -107,7 +107,7 @@ public:
|
|||||||
|
|
||||||
virtual void ReleaseData(const void* pData) const
|
virtual void ReleaseData(const void* pData) const
|
||||||
{
|
{
|
||||||
delete pData;
|
delete (Data*)pData;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user