comparison arogue7/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 f9ef86cf22b2
children
comparison
equal deleted inserted replaced
310:827441d05b3e 311:28e22fb35989
195 * init_weapon: 195 * init_weapon:
196 * Set up the initial goodies for a weapon 196 * Set up the initial goodies for a weapon
197 */ 197 */
198 198
199 void 199 void
200 init_weapon(struct object *weap, char type) 200 init_weapon(struct object *weap, int type)
201 { 201 {
202 register struct init_weps *iwp; 202 register struct init_weps *iwp;
203 203
204 iwp = &weaps[type]; 204 iwp = &weaps[type];
205 strncpy(weap->o_damage, iwp->w_dam, sizeof(weap->o_damage)); 205 strncpy(weap->o_damage, iwp->w_dam, sizeof(weap->o_damage));