Skip to content

Commit

Permalink
Marked a few more CCMDs as unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Jan 29, 2018
1 parent 64921ea commit c7eea9b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/c_cmds.cpp
Expand Up @@ -681,7 +681,7 @@ UNSAFE_CCMD (crashout)
#endif


CCMD (dir)
UNSAFE_CCMD (dir)
{
FString dir, path;
char curdir[256];
Expand Down
2 changes: 1 addition & 1 deletion src/g_game.cpp
Expand Up @@ -2599,7 +2599,7 @@ void G_DeferedPlayDemo (const char *name)
gameaction = (gameaction == ga_loadgame) ? ga_loadgameplaydemo : ga_playdemo;
}

CCMD (playdemo)
UNSAFE_CCMD (playdemo)
{
if (netgame)
{
Expand Down
2 changes: 1 addition & 1 deletion src/m_misc.cpp
Expand Up @@ -673,7 +673,7 @@ void M_ScreenShot (const char *filename)
}
}

CCMD (screenshot)
UNSAFE_CCMD (screenshot)
{
if (argv.argc() == 1)
G_ScreenShot (NULL);
Expand Down

0 comments on commit c7eea9b

Please sign in to comment.