Oops forgot to change that

Dunno if this function ever gets called for non-player objects but just in case
This commit is contained in:
indev committed 2024-08-16 01:51:28 +03:00
1 parent 35029e826f
commit 89f0521cce
1 file changed
+1 -3
+1 -3
View File
@@ -1977,10 +1977,8 @@ void K_PlayHitEmSound(mobj_t *source, mobj_t *victim)
{
if (cv_kartvoices.value)
{
if (cv_karthitemdialog.value && victim && victim->player)
if (cv_karthitemdialog.value && source->player && victim && victim->player)
{
I_Assert(source->player != NULL);
source->player->hitemtimer = TICRATE/2;
source->player->hitemvictim = victim->player - players;