removed redundant code
authorHolger Schemel <info@artsoft.org>
Sat, 27 Apr 2024 11:55:16 +0000 (13:55 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 27 Apr 2024 11:55:16 +0000 (13:55 +0200)
src/tools.c

index ac3d31bf9405b406391c255b3f5f9cf8ffbcfc91..f672fa86beaea298cf2666efc8f730003cdd3817 100644 (file)
@@ -10167,9 +10167,7 @@ int el2edimg(int element)
 
 int el2edimg_with_frame(int element, int *graphic, int *frame)
 {
-  element = GFX_ELEMENT(element);
-
-  *graphic = element_info[element].special_graphic[GFX_SPECIAL_ARG_EDITOR];
+  *graphic = el2edimg(element);
   *frame = 0;
 
   if (*graphic == IMG_UNKNOWN)