shithub: choc

Download patch

ref: d6817d2d1d7e829e2e8bd1e9503c064428901968
parent: bd36e1a19dad6d0a79fa748ba96e91c93f63a0dd
author: Turo Lamminen <[email protected]>
date: Tue Dec 11 13:56:38 EST 2018

hexen: Fix const correctness issues in TryPickupWeaponPiece

--- a/src/hexen/p_inter.c
+++ b/src/hexen/p_inter.c
@@ -412,12 +412,12 @@
     boolean checkAssembled;
     boolean gaveWeapon;
     int gaveMana;
-    static char *fourthWeaponText[] = {
+    static const char *fourthWeaponText[] = {
         TXT_WEAPON_F4,
         TXT_WEAPON_C4,
         TXT_WEAPON_M4
     };
-    static char *weaponPieceText[] = {
+    static const char *weaponPieceText[] = {
         TXT_QUIETUS_PIECE,
         TXT_WRAITHVERGE_PIECE,
         TXT_BLOODSCOURGE_PIECE