Getting House ID
#4

The problem is that you return 1 at the end of the function which is still a valid house index. Change it to -1 or some other invalid value but always check if the value is valid before using it in arrays.
Reply


Messages In This Thread
Getting House ID - by mrcakke - 31.12.2016, 21:29
Re: Getting House ID - by SoLetsGO - 31.12.2016, 21:37
Re: Getting House ID - by mrcakke - 31.12.2016, 21:51
Re: Getting House ID - by Konstantinos - 31.12.2016, 22:35
Re: Getting House ID - by mrcakke - 01.01.2017, 02:05

Forum Jump:


Users browsing this thread: 2 Guest(s)