openbsd-ports/games/openxcom/patches/patch-src_Ruleset_SoldierNamePool_cpp
jasper 59bf6b8399 - update to 20110716
- better save game and data directory handling
- better dist site

from antti harri (MAINTAINER)
2011-07-18 10:57:01 +00:00

13 lines
509 B
Plaintext

$OpenBSD: patch-src_Ruleset_SoldierNamePool_cpp,v 1.1 2011/07/18 10:57:01 jasper Exp $
--- src/Ruleset/SoldierNamePool.cpp.orig Sat Jun 4 00:04:45 2011
+++ src/Ruleset/SoldierNamePool.cpp Sat Jul 16 20:24:49 2011
@@ -49,7 +49,7 @@ void SoldierNamePool::load(const std::string &filename
{
unsigned int size = 0;
- std::string s = "./DATA/SoldierName/" + filename + ".nam";
+ std::string s = std::string(OPENXCOMDATA) + "/SoldierName/" + filename + ".nam";
std::ifstream fin(s.c_str());
if (!fin)
{