Keep getting access violation exceptions

This commit is contained in:
andreja6
2018-10-22 22:01:46 -07:00
parent c71dcb8a91
commit 268a0cd2ee
5 changed files with 16 additions and 14 deletions

View File

@@ -111,10 +111,10 @@ void PropertyWindow::_redraw()
void PropertyWindow::SetProperties(Instance * instance)
{
PropGrid_ResetContent(_propGrid);
//PropGrid_ResetContent(_propGrid);
for(size_t i = 0; i < instance->properties.size(); i++)
{
PropGrid_AddItem(_propGrid, &instance->properties.at(i));
PropGrid_AddItem(_propGrid, instance->properties.at(i)->item);
}
SetWindowLongPtr(_propGrid,GWL_USERDATA,(LONG)this);
_redraw();