diff --git a/source/games/duke/src/sectors_d.cpp b/source/games/duke/src/sectors_d.cpp index 765b3878d..9b678d882 100644 --- a/source/games/duke/src/sectors_d.cpp +++ b/source/games/duke/src/sectors_d.cpp @@ -1334,12 +1334,12 @@ void checkhitsprite_d(int i, int sn) fi.shoot(i, BLOODSPLAT3); s->ang = krand() & 2047; fi.shoot(i, BLOODSPLAT4); - fi.guts(&sprite[i], JIBS1, 1, myconnectindex); - fi.guts(&sprite[i], JIBS2, 2, myconnectindex); - fi.guts(&sprite[i], JIBS3, 3, myconnectindex); - fi.guts(&sprite[i], JIBS4, 4, myconnectindex); - fi.guts(&sprite[i], JIBS5, 1, myconnectindex); - fi.guts(&sprite[i], JIBS3, 6, myconnectindex); + fi.guts(s, JIBS1, 1, myconnectindex); + fi.guts(s, JIBS2, 2, myconnectindex); + fi.guts(s, JIBS3, 3, myconnectindex); + fi.guts(s, JIBS4, 4, myconnectindex); + fi.guts(s, JIBS5, 1, myconnectindex); + fi.guts(s, JIBS3, 6, myconnectindex); S_PlaySound(SQUISHED); deletesprite(i); break; diff --git a/source/games/duke/src/spawn_d.cpp b/source/games/duke/src/spawn_d.cpp index eec436b16..30ea61b43 100644 --- a/source/games/duke/src/spawn_d.cpp +++ b/source/games/duke/src/spawn_d.cpp @@ -1040,7 +1040,7 @@ int spawn_d(int j, int pn) case CONE: case BOX: sp->cstat = 257; // Make it hitable - sprite[i].extra = 1; + sp->extra = 1; changespritestat(i,6); break; diff --git a/source/games/duke/src/spawn_r.cpp b/source/games/duke/src/spawn_r.cpp index d79bb3a3e..eeb7c04f5 100644 --- a/source/games/duke/src/spawn_r.cpp +++ b/source/games/duke/src/spawn_r.cpp @@ -1320,7 +1320,7 @@ int spawn_r(int j, int pn) case TREE2: case TIRE: sp->cstat = 257; // Make it hitable - sprite[i].extra = 1; + sp->extra = 1; changespritestat(i,6); break;