Skip to content

Commit 3cc8b8b

Browse files
committed
windows(amd64): fix EHANDLE size( fixes saverestore )
1 parent ff2211f commit 3cc8b8b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

public/basehandle.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ friend class CBaseEntityList;
3030

3131
CBaseHandle();
3232
CBaseHandle( const CBaseHandle &other );
33-
CBaseHandle( unsigned long value );
33+
CBaseHandle( uintp value );
3434
CBaseHandle( int iEntry, int iSerialNumber );
3535

3636
void Init( int iEntry, int iSerialNumber );
@@ -63,7 +63,7 @@ friend class CBaseEntityList;
6363
protected:
6464
// The low NUM_SERIAL_BITS hold the index. If this value is less than MAX_EDICTS, then the entity is networkable.
6565
// The high NUM_SERIAL_NUM_BITS bits are the serial number.
66-
unsigned long m_Index;
66+
uintp m_Index;
6767
};
6868

6969

@@ -80,7 +80,7 @@ inline CBaseHandle::CBaseHandle( const CBaseHandle &other )
8080
m_Index = other.m_Index;
8181
}
8282

83-
inline CBaseHandle::CBaseHandle( unsigned long value )
83+
inline CBaseHandle::CBaseHandle( uintp value )
8484
{
8585
m_Index = value;
8686
}
@@ -150,7 +150,7 @@ inline bool CBaseHandle::operator <( const CBaseHandle &other ) const
150150

151151
inline bool CBaseHandle::operator <( const IHandleEntity *pEntity ) const
152152
{
153-
unsigned long otherIndex = (pEntity) ? pEntity->GetRefEHandle().m_Index : INVALID_EHANDLE_INDEX;
153+
uintp otherIndex = (pEntity) ? pEntity->GetRefEHandle().m_Index : INVALID_EHANDLE_INDEX;
154154
return m_Index < otherIndex;
155155
}
156156

0 commit comments

Comments
 (0)