diff --git a/polymer/eduke32/source/actors.c b/polymer/eduke32/source/actors.c index f7aa7e918..5fa51123c 100644 --- a/polymer/eduke32/source/actors.c +++ b/polymer/eduke32/source/actors.c @@ -558,8 +558,10 @@ int ssp(int i,unsigned int cliptype) //The set sprite function #undef deletesprite void deletespriteEVENT(int s) { + int p; + SetGameVarID(g_iReturnVarID,0, -1, -1); - OnEvent(EVENT_KILLIT, s, -1, -1); + OnEvent(EVENT_KILLIT, s, findplayer(&sprite[s],(int *)&p), p); if (!GetGameVarID(g_iReturnVarID, -1, -1))deletesprite(s); } #define deletesprite deletespriteEVENT