mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-17 11:28:16 +00:00
fix erroneous check for PNG support (bug #6113)
This commit is contained in:
parent
94faa94dc3
commit
4768dddbbb
@ -765,7 +765,7 @@ int main(int argc, char **argv)
|
||||
{
|
||||
SDL_RWops *src;
|
||||
|
||||
src = SDL_RWFromFile("images/mage.png", "rb");
|
||||
src = SDL_RWFromFile("images/units/human-magi/mage.png", "rb");
|
||||
if (src == NULL)
|
||||
exit(0);
|
||||
exit(!IMG_isPNG(src));
|
||||
|
Loading…
x
Reference in New Issue
Block a user