Stopped save games from being deleteable outside menus
This commit is contained in:
parent
3121214091
commit
53ffe3ddda
1 changed files with 5 additions and 0 deletions
|
|
@ -113,6 +113,11 @@ DEFINE_ACTION_FUNCTION(FSavegameManager, RemoveSaveSlot)
|
|||
{
|
||||
PARAM_SELF_STRUCT_PROLOGUE(FSavegameManagerBase);
|
||||
PARAM_INT(sel);
|
||||
if (!DMenu::InMenu)
|
||||
{
|
||||
Printf("Saves can only be deleted from within a menu\n");
|
||||
ACTION_RETURN_INT(-1);
|
||||
}
|
||||
ACTION_RETURN_INT(self->RemoveSaveSlot(sel));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue