Skip to content

Commit bc909e9

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

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

public/basehandle.h

Lines changed: 4 additions & 4 deletions
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

public/saverestoretypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct levellist_t
102102

103103
struct EHandlePlaceholder_t // Engine does some of the game writing (alas, probably shouldn't), but can't see ehandle.h
104104
{
105-
unsigned long i;
105+
uintp i;
106106
};
107107

108108
//-------------------------------------

0 commit comments

Comments
 (0)