ObjectPtr Model_Objects::object(const std::string& theGroupID, const int theIndex)
{
- createHistory(theGroupID);
- //TODO: mpv stabilization hotfix
- if (myHistory[theGroupID].size() <= (const unsigned int)theIndex)
+ if (theIndex == -1)
return ObjectPtr();
+ createHistory(theGroupID);
return myHistory[theGroupID][theIndex];
}