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:
Peter0x44 2024-06-17 16:26:53 +01:00
parent a40c8e34d4
commit fa99d2b563

View file

@ -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){