Fix buffer overrun with outdoor creatures

This commit is contained in:
2015-09-25 00:37:53 -04:00
parent 054f32dec2
commit fa17823716

View File

@@ -286,7 +286,7 @@ bool is_blocked(location to_check) {
} }
if(to_check == univ.party.p_loc) if(to_check == univ.party.p_loc)
return true; return true;
for(i = 0; i < 20; i++) for(i = 0; i < univ.party.out_c.size(); i++)
if((univ.party.out_c[i].exists)) if((univ.party.out_c[i].exists))
if(univ.party.out_c[i].m_loc == to_check) if(univ.party.out_c[i].m_loc == to_check)
return true; return true;