From 66c6137eed52849585f4fdac0798f76387dcb801 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 23 Sep 2010 13:04:08 +0200 Subject: [PATCH] Changed: #1096 Build error with gcc (patch provided by abelgar) --- code/ryzom/tools/pd_parser/parse_node.h | 4 ++-- .../tools/translation_tools/extract_bot_names.cpp | 5 +++-- .../translation_tools/extract_new_sheet_names.cpp | 3 ++- code/ryzom/tools/translation_tools/main.cpp | 15 +++++++++------ 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/code/ryzom/tools/pd_parser/parse_node.h b/code/ryzom/tools/pd_parser/parse_node.h index 63f94669f..7b5cb4dbb 100644 --- a/code/ryzom/tools/pd_parser/parse_node.h +++ b/code/ryzom/tools/pd_parser/parse_node.h @@ -689,9 +689,9 @@ public: IsRef(false), IsType(false), IsKey(false), + Id(0), Column(-1), - Columns(-1), - Id(0) + Columns(-1) { } diff --git a/code/ryzom/tools/translation_tools/extract_bot_names.cpp b/code/ryzom/tools/translation_tools/extract_bot_names.cpp index ea0f96747..0bfc6f6dc 100644 --- a/code/ryzom/tools/translation_tools/extract_bot_names.cpp +++ b/code/ryzom/tools/translation_tools/extract_bot_names.cpp @@ -272,8 +272,9 @@ int extractBotNames(int argc, char *argv[]) //------------------------------------------------------------------- // init the sheets CSheetId::init(false); - char *PACKED_SHEETS_NAME = "bin/translation_tools_creature.packed_sheets"; + const string PACKED_SHEETS_NAME = "bin/translation_tools_creature.packed_sheets"; loadForm("creature", PACKED_SHEETS_NAME, Creatures, false, false); + if (Creatures.empty()) { for (uint i=0;i