Fix an "Unused variable" warning.

This commit is contained in:
Yamagi Burmeister 2018-02-05 18:29:29 +01:00
parent ba4f91f619
commit 582c1062cb

View file

@ -188,7 +188,6 @@ image_t *R_FindImage (char *name, imagetype_t type)
int i, len;
byte *pic, *palette;
int width, height;
char *ptr;
if (!name)
return NULL; // ri.Sys_Error (ERR_DROP, "R_FindImage: NULL name");
@ -197,6 +196,8 @@ image_t *R_FindImage (char *name, imagetype_t type)
return NULL; // ri.Sys_Error (ERR_DROP, "R_FindImage: bad name: %s", name);
#ifndef _WIN32
char *ptr;
// fix backslashes
while ((ptr=strchr(name,'\\'))) {
*ptr = '/';