$OpenBSD: patch-src_Menu_SaveGameState_cpp,v 1.1 2011/07/18 10:57:01 jasper Exp $
--- src/Menu/SaveGameState.cpp.orig	Sat Jun  4 00:04:45 2011
+++ src/Menu/SaveGameState.cpp	Mon Jul  4 22:40:13 2011
@@ -19,6 +19,7 @@
 #include "SaveGameState.h"
 #include <iostream>
 #include "yaml.h"
+#include "../File/File.h"
 #include "../Savegame/SavedGame.h"
 #include "../Engine/Game.h"
 #include "../Engine/Action.h"
@@ -164,8 +165,10 @@ void SaveGameState::edtSaveKeyPress(Action *action)
 		{
 			if (_selected != "")
 			{
-				std::string oldName = USER_DIR + _selected + ".sav";
-				std::string newName = USER_DIR + Language::wstrToUtf8(_edtSave->getText()) + ".sav";
+				File file;
+				std::string oldName = file.getSavegameDir() + _selected + ".sav";
+				std::string newName = file.getSavegameDir() +
+					Language::wstrToUtf8(_edtSave->getText()) + ".sav";
 				if (rename(oldName.c_str(), newName.c_str()) != 0)
 				{
 					throw Exception("Failed to overwrite save");