diff --git a/src/SaveTool/SaveTool.cpp b/src/SaveTool/SaveTool.cpp index 7da88db..4e4177a 100644 --- a/src/SaveTool/SaveTool.cpp +++ b/src/SaveTool/SaveTool.cpp @@ -20,7 +20,6 @@ #include #include -#include #include #include #include @@ -210,7 +209,7 @@ void SaveTool::handleFileAction(efsw::WatchID watch_id, event.user.code = action; event.user.data1 = Containers::String{Containers::AllocatedInit, filename.c_str()}.release(); if(action == efsw::Actions::Moved) { - event.user.data2 = Containers::String{old_filename}.release(); + event.user.data2 = Containers::String{Containers::AllocatedInit, old_filename.c_str()}.release(); } SDL_PushEvent(&event);