alliedmodders / hl2sdk

Half-Life 2 SDK Mirrors
https://github.com/valvesoftware
344 stars 164 forks source link

Swap IGameEvent Set overloads #185

Closed xen-000 closed 9 months ago

xen-000 commented 9 months ago

I stepped through this in a debugger and it did seem that the wrong function was called, and surely enough, they were supposed to be swapped. This horrible hack was a workaround we used to set the player from a slot.

psychonic commented 9 months ago

SetEntity probably has the same problem. I suspect these were reversed from the Windows binary without taking into account the reversing of overload order in binary versus header with MSVC.

GAMMACASE commented 9 months ago

Yeah, just checked the linux binaries and the instance goes first, then comes the index/slot (same for the SetEntity function). @xen-000 can you also update the SetEntity function as well?