Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
(Specifically, strtok() treats double commas as a single comma, which causes it to parse the remainder of the line into the wrong fields, and then run out of tokens at the end of the line and pass a null pointer to atoi(), which the C++ standard deems to be the dreaded "undefined behavior.")
To fix the INI file, put a valid value in those fields. (You can also put an invalid value there, such as a space, but that may cause other problems. (In fact, giving the infantry an invalid mission string also leads to a crash.))
The bigger mystery is how ANY version of C&C can load this map without crashing. My best guess is that different compilers are doing undefined behavior differently (which is precisely what the standard says they can do). But I'm specifically using the same version of MSVC for this that Petroglyph says they used, so ???