Fix crash in Nametag rendering

This commit is contained in:
Agent X 2024-03-23 08:35:03 -04:00
parent ccc6ca5d3b
commit 7c799d58b7

View file

@ -49,7 +49,8 @@ void djui_hud_print_outlined_text_interpolated(const char* text, f32 prevX, f32
}
void nametags_render(void) {
if ((!gNametagsSettings.showSelfTag && network_player_connected_count() == 1) ||
if (gNetworkType == NT_NONE ||
(!gNametagsSettings.showSelfTag && network_player_connected_count() == 1) ||
!gNetworkPlayerLocal->currAreaSyncValid ||
find_object_with_behavior(bhvActSelector) != NULL) {
return;