Calling CONS_Printf() on title screen crashes the game

Status
Not open for further replies.

LJ Sonik

Developer
Sonic Team Junior
If you try calling a Lua console command that uses the CONS_Printf function (displaying a message to a specific player) from the title screen, the game will freeze then crash.
 
This is because the game has no player to point to, since no nodes have been loaded into the game. It'd be a good idea to just use print() in cases where there are no players.
 
I know why it happends, though I had expected that srb2 would check the validity of the pointer before running the function, it would be easier to automatically use print() in case there are no players.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top