Update TexturePicker.cpp

Fix crash when we pick a texture not present in the map
This commit is contained in:
EIntemporel
2022-11-01 09:55:52 +01:00
parent cdf1b4be8d
commit de5e2c01f9

View File

@@ -117,7 +117,7 @@ namespace Noggit
void texture_picker::updateSelection()
{
for (size_t index; index < _chunk->texture_set->num(); ++index)
for (size_t index = 0; index < _chunk->texture_set->num(); ++index)
{
_labels[index]->unselect();
if (_main_texture_window->filename() == _labels[index]->filename())