Fixed GAME_DLL issue with entity

This commit is contained in:
L 2023-04-30 01:42:36 +02:00
parent 67322b2665
commit c3e027c54f

View file

@ -657,11 +657,10 @@ qboolean ScriptVariable::IsEntity( void )
{
if( type == VARIABLE_LISTENER )
{
if( !m_data.listenerValue->Pointer() ||
#if defined ( CGAME_DLL )
if (!m_data.listenerValue->Pointer()
#if defined ( GAME_DLL )
||
checkInheritance( Entity::classinfostatic(), m_data.listenerValue->Pointer()->classinfo() )
#else
0
#endif
)
{