mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
64bit version now works. Temp hack in for WSA x64 crash.
This commit is contained in:
@@ -854,7 +854,7 @@ int VectorClass<T>::operator == (VectorClass<T> const & vector) const
|
||||
template<class T>
|
||||
inline int VectorClass<T>::ID(T const * ptr)
|
||||
{
|
||||
return(((unsigned long)ptr - (unsigned long)&(*this)[0]) / sizeof(T));
|
||||
return(((INT_PTR)ptr - (INT_PTR)&(*this)[0]) / sizeof(T));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user