A
Anime
Guest
Code:
procedure DumpNPCs;
var
NPCs: array of TNPC;
i : Integer;
begin
NPCs := GetNPCs;
for i := 0 to GetArrayLength(NPCs)-1 do
begin
Writeln('Name: '+NPCs[i].name);
Writeln('ID: '+IntToStr(NPCs[i].NPCType));
Writeln('------------------');
end;
end;
Causing error at line:99 in Characters.scar
Code:
if TileOnMS(Result[i].Tile, Result[i].Height / 2) then
Any ideas why?
EDIT: Solved. It was a bug in the latest reflection.
The height in GetNPCs was just being divided by 2. Instead of being Multiplied by 2 then divided by 3.


