X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=e766a52de4a9b4311401fc355bbcd9298ea03f98;hb=6ed4958820f8f97174ca47594dcc6f00ee31b2cb;hp=80073129cc76208eb9d72c61abd0790f39b1e01d;hpb=ea933dd51bfca7ddcc6b75465476cce57afd1682;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 80073129..e766a52d 100644 --- a/src/init.c +++ b/src/init.c @@ -423,6 +423,9 @@ void InitElementGraphicInfo() int direction = element_to_graphic[i].direction; int graphic = element_to_graphic[i].graphic; + if (graphic_info[graphic].bitmap == NULL) + continue; + if (action < 0) action = ACTION_DEFAULT; @@ -441,6 +444,9 @@ void InitElementGraphicInfo() int special = property_mapping[i].ext3_index; int graphic = property_mapping[i].artwork_index; + if (graphic_info[graphic].bitmap == NULL) + continue; + if (element >= MAX_NUM_ELEMENTS || special != -1) continue; @@ -473,13 +479,18 @@ void InitElementGraphicInfo() for (act=0; act