1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-25 09:44:02 +00:00

SceneEditor/node-edit: don't display "si[giganticnumberblaaargh]" anymore

That was a leftover from ages ago when selectedIdx was changed from int to size_t
This commit is contained in:
fgenesis 2022-05-14 05:16:19 +02:00
parent f890d35676
commit 00883143d7

View file

@ -2711,7 +2711,9 @@ void SceneEditor::updateText()
}
break;
case ET_PATHS:
os << "paths (" << dsq->game->getNumPaths()<< ") si[" << selectedIdx << "]";
os << "paths (" << dsq->game->getNumPaths() << ")";
if (selectedIdx != size_t(-1))
os << " si[" << selectedIdx << "]";
if (getSelectedPath())
os << " name: " << getSelectedPath()->name;
break;