Fix display of origin in ImGui

This commit is contained in:
Alexander Bock
2017-07-28 14:59:10 -04:00
parent b9f0d60d85
commit acd95b05ab

View File

@@ -64,7 +64,7 @@ void GuiOriginComponent::render() {
// only then it would be a real error
ghoul_assert(iCurrentFocus != nodes.end(), "Focus node not found");
}
int currentPosition = static_cast<int>(std::distance(iCurrentFocus, nodes.begin()));
int currentPosition = static_cast<int>(std::distance(nodes.begin(), iCurrentFocus));
bool hasChanged = ImGui::Combo("Origin", &currentPosition, nodeNames.c_str());
if (hasChanged) {