mirror of
https://github.com/nzp-team/quakespasm.git
synced 2024-11-10 06:32:03 +00:00
VITA/NX: Fix -Wincompatible-pointer-types warning
COM_LoadStackFile already returns a "byte*" so this cast is totally unneeded. I'm not sure why it was there to begin with source/gl_model.c: In function 'Mod_LoadModel': source/gl_model.c:337:7: warning: assignment to 'byte *' {aka 'unsigned char *'} from incompatible pointer type 'unsigned int *' [-Wincompatible-pointer-types] 337 | buf = (unsigned*)COM_LoadStackFile ("models/missing_model.mdl", stackbuf, sizeof(stackbuf), NULL); | ^
This commit is contained in:
parent
a40c8e34d4
commit
fa99d2b563
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ qmodel_t *Mod_LoadModel (qmodel_t *mod, qboolean crash)
|
|||
buf = COM_LoadStackFile (mod->name, stackbuf, sizeof(stackbuf), & mod->path_id);
|
||||
if (!buf)
|
||||
{
|
||||
buf = (unsigned*)COM_LoadStackFile ("models/missing_model.mdl", stackbuf, sizeof(stackbuf), NULL);
|
||||
buf = COM_LoadStackFile ("models/missing_model.mdl", stackbuf, sizeof(stackbuf), NULL);
|
||||
if (buf){
|
||||
Con_Printf ("Missing model %s substituted\n", mod->name);
|
||||
}else if(!buf){
|
||||
|
|
Loading…
Reference in a new issue