X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fmisc.c;h=c34cddd322cf7a1294ee33c074e73f736327e2c9;hp=19a649b91a522ee1288c9ea2f0e199fe00726ba9;hb=d5b4672f14a32620a01d18d439bee266b11233f1;hpb=bd24acb3d7e02c7d9700cf8e2a89ceeb7ea6bcca diff --git a/src/libgame/misc.c b/src/libgame/misc.c index 19a649b9..c34cddd3 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -2716,7 +2716,8 @@ int get_parameter_value(char *value_raw, char *suffix, int type) } else if (strEqual(suffix, ".class")) { - result = get_hash_from_key(value); + result = (strEqual(value, ARG_UNDEFINED) ? ARG_UNDEFINED_VALUE : + get_hash_from_key(value)); } else if (strEqual(suffix, ".style")) {