about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-11-03 02:15:39 +0100
committeroy <Tom_Adams@web.de>2010-11-03 02:15:39 +0100
commite89cb59891224debfd22ed86f492442d81181132 (patch)
tree4dfc60e393c6fc3c23188988dc5321dda4060de9 /src/game
parent6c51e864ee0f83106aadfa7361ac24f2229ca648 (diff)
downloadzcatch-e89cb59891224debfd22ed86f492442d81181132.tar.gz
zcatch-e89cb59891224debfd22ed86f492442d81181132.zip
fixed problem with CLocConstString when changing to English and back to the previous language again
Diffstat (limited to 'src/game')
-rw-r--r--src/game/localization.cpp3
-rw-r--r--src/game/localization.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/game/localization.cpp b/src/game/localization.cpp
index 82de858f..536a4fce 100644
--- a/src/game/localization.cpp
+++ b/src/game/localization.cpp
@@ -30,6 +30,7 @@ void CLocConstString::Reload()
 
 CLocalizationDatabase::CLocalizationDatabase()
 {
+	m_VersionCounter = 0;
 	m_CurrentVersion = 0;
 }
 
@@ -89,7 +90,7 @@ bool CLocalizationDatabase::Load(const char *pFilename, IStorage *pStorage, ICon
 		AddString(pLine, pReplacement);
 	}
 	
-	m_CurrentVersion++;
+	m_CurrentVersion = ++m_VersionCounter;
 	return true;
 }
 
diff --git a/src/game/localization.h b/src/game/localization.h
index 9a2016c8..c84075e2 100644
--- a/src/game/localization.h
+++ b/src/game/localization.h
@@ -19,6 +19,7 @@ class CLocalizationDatabase
 	};
 
 	sorted_array<CString> m_Strings;
+	int m_VersionCounter;
 	int m_CurrentVersion;
 	
 public: