Skip to content

Commit

Permalink
tr1/carrier: add missing const
Browse files Browse the repository at this point in the history
  • Loading branch information
lahm86 committed Oct 15, 2024
1 parent 6208923 commit e028198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tr1/game/carrier.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static ITEM *M_GetCarrier(const int16_t item_num)
// but then have those items dropped by the actual creatures within.
ITEM *item = Item_Get(item_num);
if (Object_IsObjectType(item->object_id, g_PlaceholderObjects)) {
int16_t child_item_num = *(int16_t *)item->data;
const int16_t child_item_num = *(int16_t *)item->data;
item = Item_Get(child_item_num);
}

Expand Down

0 comments on commit e028198

Please sign in to comment.