fix monumental fuckup in r1805 that broke pretty much every EDuke32 mod ever

git-svn-id: https://svn.eduke32.com/eduke32@1807 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2011-02-27 18:01:49 +00:00
parent bcadbd372b
commit 7f2bf98179

View file

@ -86,14 +86,14 @@ void VM_OnEvent(register int32_t iEventID, register int32_t iActor, register int
if (!apScriptGameEvent[iEventID]) if (!apScriptGameEvent[iEventID])
return; return;
insptr = apScriptGameEvent[iEventID];
{ {
intptr_t *oinsptr=insptr; intptr_t *oinsptr=insptr;
vmstate_t vm_backup; vmstate_t vm_backup;
vmstate_t tempvm = { iActor, iPlayer, lDist, &actor[iActor].t_data[0], vmstate_t tempvm = { iActor, iPlayer, lDist, &actor[iActor].t_data[0],
&sprite[iActor], 0 }; &sprite[iActor], 0 };
insptr = apScriptGameEvent[iEventID];
Bmemcpy(&vm_backup, &vm, sizeof(vmstate_t)); Bmemcpy(&vm_backup, &vm, sizeof(vmstate_t));
Bmemcpy(&vm, &tempvm, sizeof(vmstate_t)); Bmemcpy(&vm, &tempvm, sizeof(vmstate_t));