comparison arogue5/weapons.c @ 311:28e22fb35989

Fix one more batch of compiler warnings. A few of these were potential bugs.
author John "Elwin" Edwards
date Tue, 04 May 2021 21:03:47 -0400
parents 56e748983fa8
children
comparison
equal deleted inserted replaced
310:827441d05b3e 311:28e22fb35989
138 * init_weapon: 138 * init_weapon:
139 * Set up the initial goodies for a weapon 139 * Set up the initial goodies for a weapon
140 */ 140 */
141 141
142 void 142 void
143 init_weapon(struct object *weap, char type) 143 init_weapon(struct object *weap, int type)
144 { 144 {
145 register struct init_weps *iwp; 145 register struct init_weps *iwp;
146 146
147 iwp = &weaps[type]; 147 iwp = &weaps[type];
148 strcpy(weap->o_damage,iwp->w_dam); 148 strcpy(weap->o_damage,iwp->w_dam);