File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 77#include " Common/object_broker.h"
88#endif // XRGAME_EXPORTS
99
10- // T_ID - уникальный текстовый идентификатор (аттрибут id в XML файле)
11- // T_INDEX - уникальный числовой индекс
1210// T_INIT - класс где определена статическая InitXmlIdToIndex
1311// функция инициализации file_str и tag_name
1412
@@ -51,7 +49,7 @@ class CXML_IdToIndex
5149 static const ITEM_DATA* GetById (const shared_str& str_id, bool no_assert = false );
5250 static const ITEM_DATA* GetByIndex (int index, bool no_assert = false );
5351
54- static const int IdToIndex (const shared_str& str_id, int default_index = T_INDEX(- 1 ) , bool no_assert = false)
52+ static const int IdToIndex (const shared_str& str_id, int default_index = - 1 , bool no_assert = false )
5553 {
5654 const ITEM_DATA* item = GetById (str_id, no_assert);
5755 return item ? item->index : default_index;
You can’t perform that action at this time.
0 commit comments