mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2024-11-23 08:00:17 +00:00
world: use const_container_of to check physents
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
8e40dedafd
commit
6b209d316c
@ -160,7 +160,7 @@ SV_AddLinksToPhysents_r(const areanode_t *node, const edict_t *player,
|
||||
/* touch linked edicts */
|
||||
for (link = solids->next; link != solids; link = next) {
|
||||
next = link->next;
|
||||
check = container_of(link, edict_t, area);
|
||||
check = const_container_of(link, edict_t, area);
|
||||
|
||||
/* player's own missile */
|
||||
if (check->v.owner == playernum)
|
||||
|
Loading…
Reference in New Issue
Block a user