X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=1f58073285447eaab1dac4f132d8be8288442f8c;hb=494b886d5c5041013ea361a12a07d7cd87551d52;hp=798f4b4aab05442ac4d6f0c40db79ce65d710d30;hpb=bafa61706833e7bfe942c388471058749c20c79e;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 798f4b4a..1f580732 100644 --- a/src/init.c +++ b/src/init.c @@ -4710,7 +4710,12 @@ static char *getNewArtworkIdentifier(int type) artwork_current_identifier) != 0) artwork_new_identifier = artwork_current_identifier; +#if 1 + *(ARTWORK_CURRENT_IDENTIFIER_PTR(artwork, type))= artwork_current_identifier; +#else + /* newer versions of gcc do not like this anymore :-/ */ *(&(ARTWORK_CURRENT_IDENTIFIER(artwork, type))) = artwork_current_identifier; +#endif #if 0 if (type == ARTWORK_TYPE_GRAPHICS)