[all] common: fix compilation on clang

This commit is contained in:
Geoffrey McRae 2025-03-05 12:48:20 +11:00
parent be52a86a9a
commit 711c932380

View File

@ -952,7 +952,7 @@ float option_get_float(const char * module, const char * name)
if (!o)
{
DEBUG_ERROR("BUG: Failed to get the value for option %s:%s", module, name);
return NAN;
return 0.0f;
}
DEBUG_ASSERT(o->type == OPTION_TYPE_FLOAT);
return o->value.x_float;