world: use const_container_of to check physents

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-04-24 20:23:21 +09:30
parent 8e40dedafd
commit 6b209d316c

View File

@ -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)