Making sure we don't pass a negative key to an array

This commit is contained in:
Sylae Corell
2014-07-30 11:58:42 -06:00
parent f902fe2f37
commit e8a96f4918

View File

@@ -102,13 +102,13 @@ struct out_wandering_type
struct outdoor_record_type
{
unsigned char terrain[48][48];
location special_locs[18];
unsigned char special_id[18];
location exit_locs[8];
char exit_dests[8];
location sign_locs[8];
location special_locs[18];
unsigned char special_id[18];
location exit_locs[8];
unsigned char exit_dests[8];
location sign_locs[8];
out_wandering_type wandering[4],special_enc[4];
location wandering_locs[4];
location wandering_locs[4];
RECT16 info_rect[8];
unsigned char strlens[180];
special_node_type specials[60];
@@ -124,7 +124,7 @@ typedef struct {
unsigned char time_flag;
unsigned char extra1,extra2;
short spec1, spec2;
char spec_enc_code, time_code;
unsigned char spec_enc_code, time_code;
short monster_time,personality;
short special_on_kill,facial_pic;
} creature_start_type;