mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix: Don't delete all files in editor directory but only files starting with undo_
This commit is contained in:
parent
9d64525e5d
commit
9ae59a1923
|
@ -4025,7 +4025,7 @@ void CEditor::Render()
|
|||
static int UndoStepsListdirCallback(const char *pName, int IsDir, int StorageType, void *pUser)
|
||||
{
|
||||
IStorage *pStorage = (IStorage *)pUser;
|
||||
if (str_comp_nocase_num(pName, "undo_", 0) == 0)
|
||||
if (str_comp_nocase_num(pName, "undo_", 5) == 0)
|
||||
{
|
||||
char aBuffer[1024];
|
||||
pStorage->GetCompletePath(IStorage::TYPE_SAVE, "editor/", aBuffer, sizeof(aBuffer));
|
||||
|
|
Loading…
Reference in a new issue