From 714d7a29397b44fcb2b1fef2d675d296cb984264 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 19 Feb 2015 23:50:04 -0500 Subject: doom: Change weaponowned[] to an int array. The st_stuff.c status bar code passes pointer to an entry in weaponowned[] as an int pointer, but weaponowned[] is an array of booleans and booleans are not always represented as 32-bit ints. Remove the (int *) cast and ensure correct behavior. This fixes the immediate issue in #509 (thanks floppes). --- src/doom/d_player.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/doom/d_player.h') diff --git a/src/doom/d_player.h b/src/doom/d_player.h index a72c2f5f..04e47109 100644 --- a/src/doom/d_player.h +++ b/src/doom/d_player.h @@ -111,7 +111,7 @@ typedef struct player_s // Is wp_nochange if not changing. weapontype_t pendingweapon; - boolean weaponowned[NUMWEAPONS]; + int weaponowned[NUMWEAPONS]; int ammo[NUMAMMO]; int maxammo[NUMAMMO]; -- cgit v1.2.3