fix for spawnflags toolstips now showing when bits are skipped

(undefined)
This commit is contained in:
wongit 2020-02-21 22:03:20 +00:00
parent 4292115ef7
commit df7d260538

View File

@ -1055,7 +1055,7 @@ void SurfaceFlags_setEntityClass( EntityClass* eclass ){
gtk_label_set_text( GTK_LABEL( GTK_BIN( widget )->child ), str.c_str() ); gtk_label_set_text( GTK_LABEL( GTK_BIN( widget )->child ), str.c_str() );
if( const EntityClassAttribute* attribute = eclass->flagAttributes[i] ){ if( const EntityClassAttribute* attribute = eclass->flagAttributes[spawn_table[i]] ){
EntityAttribute_setTooltip( widget, attribute->m_name.c_str(), attribute->m_description.c_str() ); EntityAttribute_setTooltip( widget, attribute->m_name.c_str(), attribute->m_description.c_str() );
} }
} }