Skip to content

Commit a974f2a

Browse files
authored
Changed TRSObject to TRSEntityArray for TRSEntityArray documentation
The documentation example was throwing an error. I assume it was copy and pasted over from the object file and forgotten. So just a quick fix to get a working example.
1 parent 113c38a commit a974f2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

osrs/position/map/entities.simba

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ Example:
177177
{$I WaspLib/osrs.simba}
178178

179179
var
180-
objs: TRSObjectArray;
180+
entities: TRSEntityArray;
181181
begin
182182
Map.Setup([ERSChunk.VARROCK]);
183-
objs := TRSObject.Create(ObjectsJSON.GetByName('bank'));
183+
entities := TRSEntityArray.Create(NPCsJSON.GetByName('Banker'));
184184
end;
185185
```
186186
*)

0 commit comments

Comments
 (0)