diff --git a/src/utility/sc_man.cpp b/src/utility/sc_man.cpp index 35b45e998..562d85448 100644 --- a/src/utility/sc_man.cpp +++ b/src/utility/sc_man.cpp @@ -1283,7 +1283,8 @@ int ParseHex(const char* hex, FScriptPosition* sc) else if (*str >= 'A' && *str <= 'F') num += 10 + *str - 'A'; else { - sc->Message(MSG_WARNING, "Bad hex number: %s", hex); + if (sc) sc->Message(MSG_WARNING, "Bad hex number: %s", hex); + else Printf("Bad hex number: %s\n", hex); return 0; } str++;