After testing on the calShortestDist(), the array returned from the calShortestDist() function returns array correctly with correct dimensions. However, when printDist() is called, the array sometimes return with twice dimensions. Problem may occurred with double-counting.
Created attachment 56 [details] how clearArray is added
Thank you for the bug report. The problem caused by the static array male and female declared and not cleared at the beginning of the program. The clearArray is added in mapInitialize() so that every program startup will clear the array.
(In reply to Phudis Dawieang from comment #2) > Thank you for the bug report. The problem caused by the static array male > and female declared and not cleared at the beginning of the program. The > clearArray is added in mapInitialize() so that every program startup will > clear the array.