@@ -227,7 +227,7 @@ void SavedGame::load(const std::string &filename, Ruleset *rule)
227227 _globeLon = doc[" globeLon" ].as <double >(_globeLon);
228228 _globeLat = doc[" globeLat" ].as <double >(_globeLat);
229229 _globeZoom = doc[" globeZoom" ].as <int >(_globeZoom);
230- _ids = doc[" ids" ].as < std::map<std::string, int > >(_ids);
230+ initIds ( doc[" ids" ].as < std::map<std::string, int > >(_ids) );
231231
232232 for (YAML ::const_iterator i = doc[" countries" ].begin (); i != doc[" countries" ].end (); ++i)
233233 {
@@ -332,6 +332,7 @@ void SavedGame::save(const std::string &filename) const
332332 // Saves the brief game info used in the saves list
333333 YAML ::Node brief;
334334 brief[" version" ] = OPENXCOM_VERSION_SHORT ;
335+ brief[" build" ] = OPENXCOM_VERSION_GIT ;
335336 brief[" time" ] = _time->save ();
336337 out << brief;
337338 // Saves the full game data to the save
@@ -563,7 +564,18 @@ int SavedGame::getId(const std::string &name)
563564 */
564565void SavedGame::initIds (const std::map<std::string, int > &ids)
565566{
566- _ids = ids;
567+ _ids[" STR_UFO" ] = 1 ;
568+ _ids[" STR_LANDING_SITE" ] = 1 ;
569+ _ids[" STR_CRASH_SITE" ] = 1 ;
570+ _ids[" STR_WAYPOINT" ] = 1 ;
571+ _ids[" STR_TERROR_SITE" ] = 1 ;
572+ _ids[" STR_ALIEN_BASE" ] = 1 ;
573+ _ids[" STR_SOLDIER" ] = 1 ;
574+ _ids[" ALIEN_MISSIONS" ] = 1 ;
575+ for (std::map<std::string, int >::const_iterator i = ids.begin (); i != ids.end (); ++i)
576+ {
577+ _ids[i->first ] = i->second ;
578+ }
567579}
568580
569581/* *
0 commit comments