The code often breaks out into Segmentation Faults when used with dynamic maps as the co-ordinates x and y may be negative; and when used while setting indices, they result in a negative value. This in turn causes segmentation faults.
A possible solution is to transform the x and y co-ordinates from World to Map before setting indices.
The code often breaks out into Segmentation Faults when used with dynamic maps as the co-ordinates x and y may be negative; and when used while setting indices, they result in a negative value. This in turn causes segmentation faults.
A possible solution is to transform the x and y co-ordinates from World to Map before setting indices.