diff --git a/source/glest_game/game/script_manager.cpp b/source/glest_game/game/script_manager.cpp index 2bed288f1..d60ae60a4 100644 --- a/source/glest_game/game/script_manager.cpp +++ b/source/glest_game/game/script_manager.cpp @@ -77,7 +77,7 @@ void ScriptManagerMessage::loadGame(const XmlNode *rootNode) { text = scriptManagerMessageNode->getAttribute("text")->getValue(); header = scriptManagerMessageNode->getAttribute("header")->getValue(); factionIndex = scriptManagerMessageNode->getAttribute("factionIndex")->getIntValue(); - teamIndex = scriptManagerMessageNode->getAttribute("header")->getIntValue(); + teamIndex = scriptManagerMessageNode->getAttribute("teamIndex")->getIntValue(); } // =====================================================