AcceptEntityInput 64bit fix (#2149)

* Fix AcceptEntityInput on 64 bit by using struct from SDK instead of pointer math.

* Fix from Malifox. Not sure what it does but it is supposedly related to the AcceptEntityInput crash.

* Fix episode1 and darkm sdk paths
This commit is contained in:
bottiger1
2024-05-05 20:06:06 +00:00
committed by GitHub
parent 96d0959db1
commit 5cb2d68fd7
4 changed files with 37 additions and 88 deletions
+1 -1
View File
@@ -725,7 +725,7 @@ inline void Write_PushObject(JitWriter *jit, const SourceHook::PassInfo *info, u
ObjectClass classes[MAX_CLASSES];
int numWords = ClassifyObject(smInfo, classes);
if (classes[0] == ObjectClass::Pointer)
if (classes[0] == ObjectClass::Pointer || classes[0] == ObjectClass::Memory)
goto push_byref;
int neededIntRegs = 0;