diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 2f41c04..3d47e7f 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -533,9 +533,9 @@ void VulkanHppGenerator::addCommand( std::string const & name, CommandData & com std::map::iterator handleIt = m_handles.find( commandData.params[0].type.type ); if ( handleIt == m_handles.end() ) { - handleIt = m_handles.find( "" ); + handleIt = m_handles.begin(); + assert( handleIt->first == "" ); } - assert( handleIt != m_handles.end() ); commandData.handle = handleIt->first; // add this command to the list of commands @@ -9003,16 +9003,10 @@ std::string VulkanHppGenerator::generateStructCompareOperators( std::pair