mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
Fix an "Unused variable" warning.
This commit is contained in:
parent
ba4f91f619
commit
582c1062cb
1 changed files with 2 additions and 1 deletions
|
@ -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 = '/';
|
||||
|
|
Loading…
Reference in a new issue