Tinny Posted January 28, 2005 Posted January 28, 2005 Hey guys, I was trying to make a hack by including a header file i wrote in q_shared.h. This was used to flexibly alter some things in q_shared.h as if i edited it directly it would crash the game. But i've tried a new thing and sometimes it works but other times it crashes the game in the q_shared.c file at this function: char * QDECL va( const char *format, ... ) { va_list argptr; static char string[2][32000]; // in case va is called by nested functions static int index = 0; char *buf; buf = string[index & 1]; index++; va_start (argptr, format); vsprintf (buf, format,argptr); va_end (argptr); return buf; } It crashes at the line vsprintf (buf, format,argptr); Does anyone have any idea what is going on?
Wudan Posted January 30, 2005 Posted January 30, 2005 Yes, your modified code caused the engine to do something that it didn't want to, causing the crash. Sorry, messing with q_shared.h/.c is a very dangerous task
Recommended Posts
Archived
This topic is now archived and is closed to further replies.