diff --git a/include/crlib/cr-platform.h b/include/crlib/cr-platform.h index f402667..9128b57 100644 --- a/include/crlib/cr-platform.h +++ b/include/crlib/cr-platform.h @@ -129,7 +129,7 @@ struct Platform : public Singleton { return !!result; } - bool removeDirectory (const char *dir) { + bool removeFile (const char *dir) { #if defined(CR_WINDOWS) _unlink (dir); #else diff --git a/source/graph.cpp b/source/graph.cpp index 9e5b6a9..3d22d7b 100644 --- a/source/graph.cpp +++ b/source/graph.cpp @@ -2605,7 +2605,7 @@ void BotGraph::eraseFromDisk () { for (const auto &item : forErase) { if (File::exists (item)) { - plat.removeDirectory (item.chars ()); + plat.removeFile (item.chars ()); game.print ("File %s, has been deleted from the hard disk", item.chars ()); } else {