From 4da33e2068a8896b9fa77f25ecbbc35be09bde24 Mon Sep 17 00:00:00 2001 From: tobigun Date: Fri, 8 Aug 2008 13:05:43 +0000 Subject: some warnings removed git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1236 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UCore.pas | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Game/Code/Classes/UCore.pas') diff --git a/Game/Code/Classes/UCore.pas b/Game/Code/Classes/UCore.pas index 2e8ad5b2..fe23a68e 100644 --- a/Game/Code/Classes/UCore.pas +++ b/Game/Code/Classes/UCore.pas @@ -479,6 +479,8 @@ end; // If lParam = nil then get length of Moduleinfo Array. If lparam <> nil then write array of TModuleInfo to address at lparam //------------- function TCore.GetModuleInfo(wParam: TwParam; lParam: TlParam): integer; +var + I: integer; begin if (Pointer(lParam) = nil) then begin @@ -487,12 +489,13 @@ begin else begin try - for Result := 0 to High(Modules) do + for I := 0 to High(Modules) do begin - AModuleInfo(Pointer(lParam))[Result].Name := Modules[Result].Info.Name; - AModuleInfo(Pointer(lParam))[Result].Version := Modules[Result].Info.Version; - AModuleInfo(Pointer(lParam))[Result].Description := Modules[Result].Info.Description; + AModuleInfo(Pointer(lParam))[I].Name := Modules[I].Info.Name; + AModuleInfo(Pointer(lParam))[I].Version := Modules[I].Info.Version; + AModuleInfo(Pointer(lParam))[I].Description := Modules[I].Info.Description; end; + Result := Length(Modules); except Result := -1; end; -- cgit v1.2.3