diff --git a/Hazelnut/src/Panels/ContentBrowserPanel.cpp b/Hazelnut/src/Panels/ContentBrowserPanel.cpp index b34119419..667ba45bd 100644 --- a/Hazelnut/src/Panels/ContentBrowserPanel.cpp +++ b/Hazelnut/src/Panels/ContentBrowserPanel.cpp @@ -119,7 +119,7 @@ namespace Hazel { icon = directoryEntry.is_directory() ? m_DirectoryIcon : m_FileIcon; ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0)); - if (icon.get() != nullptr) + if (icon) ImGui::ImageButton((ImTextureID)icon->GetRendererID(), { thumbnailSize, thumbnailSize }, { 0, 1 }, { 1, 0 }); if (ImGui::BeginDragDropSource())