Browse Source

Update gegl_color.pas

Seenkao 2 years ago
parent
commit
df86b7c725
1 changed files with 1 additions and 4 deletions
  1. 1 4
      Zengl_SRC/srcGEGL/gegl_color.pas

+ 1 - 4
Zengl_SRC/srcGEGL/gegl_color.pas

@@ -221,10 +221,7 @@ end;
 function Get_Color(num: LongWord): LongWord; {$IfDef USE_INLINE} inline;{$EndIf}
 function Get_Color(num: LongWord): LongWord; {$IfDef USE_INLINE} inline;{$EndIf}
 begin
 begin
   if num >= managerColor.count then
   if num >= managerColor.count then
-  begin
-    Result := cl_Black05;
-    exit;
-  end;
+    num := cl_Black05;
   Result := managerColor.Color[num];
   Result := managerColor.Color[num];
 end;
 end;