ref: 5900561214486cfc349afc6edf6214b056f860c1
parent: a5b17c11a954715ccea55fc0c9b86a848c04a889
author: Turo Lamminen <turotl@gmail.com>
date: Tue Jan 29 14:38:27 EST 2019
strife: Make P_RemoveInventoryItem return value const
--- a/src/strife/p_local.h
+++ b/src/strife/p_local.h
@@ -92,7 +92,7 @@
// haleyjd 08/30/10: [STRIFE] Needed externally
void P_Thrust (player_t* player, angle_t angle, fixed_t move);
// villsa [STRIFE]
-char* P_RemoveInventoryItem(player_t *player, int slot, int amount);
+const char *P_RemoveInventoryItem(player_t *player, int slot, int amount);
//
--- a/src/strife/p_user.c
+++ b/src/strife/p_user.c
@@ -595,7 +595,7 @@
// P_RemoveInventoryItem
// villsa [STRIFE] new function
//
-char* P_RemoveInventoryItem(player_t *player, int slot, int amount)
+const char* P_RemoveInventoryItem(player_t *player, int slot, int amount)
{
mobjtype_t type;