Skip to content

Commit

Permalink
If resource was not loaded, then don't continue on, error out.
Browse files Browse the repository at this point in the history
(cherry picked from commit aa8bf28)
  • Loading branch information
buginator committed Oct 17, 2010
1 parent 91e3dd4 commit e09e8ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ivis_common/bitimage.c
Expand Up @@ -31,7 +31,7 @@ static unsigned short LoadTextureFile(const char *FileName)
iV_Image *pSprite;
unsigned int i;

ASSERT(resPresent("IMGPAGE", FileName), "Texture file \"%s\" not preloaded.", FileName);
ASSERT_OR_RETURN( 0, resPresent("IMGPAGE", FileName), "Texture file \"%s\" not preloaded.", FileName);

pSprite = (iV_Image*)resGetData("IMGPAGE", FileName);
debug(LOG_TEXTURE, "Load texture from resource cache: %s (%d, %d)",
Expand Down

0 comments on commit e09e8ac

Please sign in to comment.