rj
11-29-2016, 01:51 AM
This function always gives me a access voilation once in a while and I don't know why
function TRSInventory.DTMExists(const DTM, slot:integer):boolean;
var
x, y:integer;
begin
result := findDTM(DTM, x, y, self.slots[slot].X1, self.slots[slot].y1, self.slots[slot].x2, self.slots[slot].y2);
end;
slots is a TBoxArray
what could cause this to throw a access violation
function TRSInventory.DTMExists(const DTM, slot:integer):boolean;
var
x, y:integer;
begin
result := findDTM(DTM, x, y, self.slots[slot].X1, self.slots[slot].y1, self.slots[slot].x2, self.slots[slot].y2);
end;
slots is a TBoxArray
what could cause this to throw a access violation