10.12.2018, 13:53
Because HouseInfo goes out of bounds. Replace with MAX_HOUSES+1 with sizeof (HouseInfo) in the loop.
When a player is in range of a house, set their interior and position and stop the loop using break;
When a player is in range of a house, set their interior and position and stop the loop using break;