Game: fix compile error

Invalid EHandles are always -1. INVALID_EHANDLE tag has been removed in commit 084f94aefd23e250f30f700acbe7cce343d78b75.
This commit is contained in:
Kawe Mazidjatari 2024-07-31 22:39:44 +02:00
parent 1c2c61a397
commit 90aa3a7bde

View File

@ -104,9 +104,9 @@ CHandle<T>::CHandle( const CBaseHandle &handle )
template<class T>
inline CHandle<T>::CHandle( T *pObj )
: CBaseHandle( INVALID_EHANDLE )
CHandle<T>::CHandle( T *pObj )
{
Term();
Set( pObj );
}
@ -189,9 +189,4 @@ T* CHandle<T>::operator -> () const
return Get();
}
// specialization of EnsureValidValue for CHandle<T>
template<typename T>
FORCEINLINE void EnsureValidValue( CHandle<T> &x ) { x = INVALID_EHANDLE; }
#endif // EHANDLE_H