Fix: Don't delete all files in editor directory but only files starting with undo_

This commit is contained in:
def 2014-02-11 19:51:38 +01:00
parent 9d64525e5d
commit 9ae59a1923

View file

@ -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));