1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

fix an assert crash.

This commit is contained in:
id
1999-12-11 02:34:07 +00:00
parent bb75616aad
commit c2cbce6d84

View File

@@ -582,10 +582,10 @@ renderTexture(WMScreen *scr, proplist_t texture, int width, int height,
str = PLGetString(PLGetArrayElement(texture, 1)); str = PLGetString(PLGetArrayElement(texture, 1));
path = wfindfileinarray(GetObjectForKey("PixmapPath"), str); if (path = wfindfileinarray(GetObjectForKey("PixmapPath"), str))
timage = RLoadImage(rc, path, 0); timage = RLoadImage(rc, path, 0);
if (!timage) { if (!path || !timage) {
wwarning("could not load file '%s': %s", path, wwarning("could not load file '%s': %s", path,
RMessageForError(RErrorCode)); RMessageForError(RErrorCode));
} else { } else {