foxygit / doom Log in
commit 5900561214486cfc349afc6edf6214b056f860c1
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Jan 29 19:38:27 2019 +0200
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Jan 29 19:38:27 2019 +0200

    strife: Make P_RemoveInventoryItem return value const
---
 src/strife/p_local.h | 2 +-
 src/strife/p_user.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/strife/p_local.h b/src/strife/p_local.h
index d911dd86..acd633a4 100644
--- a/src/strife/p_local.h
+++ b/src/strife/p_local.h
@@ -92,7 +92,7 @@ void    P_PlayerThink (player_t* player);
 // 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);


 //
diff --git a/src/strife/p_user.c b/src/strife/p_user.c
index 7aa5b6a9..567608d1 100644
--- a/src/strife/p_user.c
+++ b/src/strife/p_user.c
@@ -595,7 +595,7 @@ void P_PlayerThink (player_t* player)
 // 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;