Skip to content

Commit 9be89f3

Browse files
authored
Changed TRSObject to TRSObjectArray for TRSObjectArray documentation
Running the documentation example throws an error since its trying to assign a TRSObject to an TRSObjectArray. The changed example should run now without errors. Also 'bank' is not an object but 'Bank booth' is.
1 parent 7e239d3 commit 9be89f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osrs/position/map/objects.simba

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ var
157157
objs: TRSObjectArray;
158158
begin
159159
Map.Setup([ERSChunk.VARROCK]);
160-
objs := TRSObject.Create(ObjectsJSON.GetByName('bank'));
160+
objs := TRSObjectArray.Create(ObjectsJSON.GetByName('Bank booth'));
161161
end;
162162
```
163163
*)

0 commit comments

Comments
 (0)