SRL Archive - Bugs

error


weezy

2010-11-26 02:15:31

procedure CastTelegrabOn(uptext:TStringArray;x,y:integer);
begin
if GetCurrentTab <> 28 then
GameTab(28);
ClickBox(TelekineticGrab);
MMouse(x,y,2,2);
if r_WaitUpTextMulti(uptext, 300) then
ClickMouse2(true)
else
begin
ClickMouse2(false);
R_WaitOptionMulti(uptext, 300);
end;
end;

The code is good but when the script gets to this code section it gives an out of range error and highlights this piece of code:
  next:= SmartGetFieldObject(head, hook_node_Next);       

It's from the GetMenuText function in reflections Text.simba file.