mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
add "no texture" marker to prevent SKYDEFS crash with empty texture name
This commit is contained in:
parent
f16bbb7877
commit
78491e0340
@ -50,6 +50,7 @@ static boolean ParseSkyTex(json_t *json, skytex_t *out)
|
|||||||
json_t *name = JS_GetObject(json, "name");
|
json_t *name = JS_GetObject(json, "name");
|
||||||
if (!JS_IsString(name))
|
if (!JS_IsString(name))
|
||||||
{
|
{
|
||||||
|
out->name = "-"; // no texture
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
out->name = M_StringDuplicate(JS_GetString(name));
|
out->name = M_StringDuplicate(JS_GetString(name));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user