Skip to content

Commit

Permalink
add "no texture" marker to prevent SKYDEFS crash with empty texture name
Browse files Browse the repository at this point in the history
  • Loading branch information
rfomin committed Dec 12, 2024
1 parent f16bbb7 commit 78491e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/r_skydefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ static boolean ParseSkyTex(json_t *json, skytex_t *out)
json_t *name = JS_GetObject(json, "name");
if (!JS_IsString(name))
{
out->name = "-"; // no texture
return false;
}
out->name = M_StringDuplicate(JS_GetString(name));
Expand Down

0 comments on commit 78491e0

Please sign in to comment.