MantisBT - Soldat Dedicated Server
View Issue Details
0000381Soldat Dedicated ServerScripting Corepublic2013-08-11 02:242013-08-11 02:27
DorkeyDear 
Falcon 
highminoralways
resolvedfixed 
2.7.5 
 
0000381: Map.Objects index span is limited to 32
Indexing Map.Objects by a number greater than 32 causes an unhandled exception.
procedure OnClockTick(Ticks: integer);
var
    i: byte;
begin
    for i := 1 to 90 do
        try
            if (Map.Objects[i].Active) then
                WriteLn(InttoStr(i) + ' active')
            else
                WriteLn(InttoStr(i) + ' inactive');
        except
            WriteLn(InttoStr(i) + ' exception');
        end;
end;

begin
    Game.OnClockTick := @OnClockTick;
end.
No tags attached.
Issue History
2013-08-11 02:24DorkeyDearNew Issue
2013-08-11 02:26FalconAssigned To => Falcon
2013-08-11 02:26FalconStatusnew => confirmed
2013-08-11 02:27FalconStatusconfirmed => resolved
2013-08-11 02:27FalconResolutionopen => fixed

There are no notes attached to this issue.