add hack to fix visual studio 10 build

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8005 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: bb9706c6a6f5875c1a999f0127fc90967ac07fa6
Former-commit-id: 71d07525ed45e03d6238bf4344cd531cd406b227
This commit is contained in:
iobyte 2022-02-05 17:41:34 +00:00
parent bfd22dfe44
commit 1afb55583d

View file

@ -1827,8 +1827,12 @@ osg::ref_ptr <osg::Group> SDHUD::generateHudFromXmlFile(int scrH, int scrW)
// line variables
std::vector<OSGPLOT::PlotLineConfig> lines;
#if _MSC_VER &&_MSC_VER < 1700
long long lineNum = 1;
#else
int lineNum = 1;
#endif
int numLines = 1;
//get a list of the sections in this section
std::string linesSectionPath = subSectionPath + "/lines/";
std::string lineSectionPath = linesSectionPath + "1";
@ -1848,7 +1852,7 @@ osg::ref_ptr <osg::Group> SDHUD::generateHudFromXmlFile(int scrH, int scrW)
config.color = colorStringToVec4(GfParmGetStr(paramHandle, lineSectionPath.c_str(), "color", ""));
lines.push_back(config);
lineSectionPath = linesSectionPath + std::to_string(++numLines);
lineSectionPath = linesSectionPath + std::to_string(++lineNum);
}
GfLogDebug("OSGHUD: Generate graph object: %s \n", elementId.c_str());