fix: player null exception 수정

This commit is contained in:
aube.lee
2025-03-04 21:27:20 +09:00
parent 0824f35c5b
commit dddf9552bf

View File

@@ -23,7 +23,7 @@ namespace TON
// 플레이어가 가지고 있는 캐릭터들의 데이터 불러옴
List<PlayerData> players = PlayerDataManager.Singleton.playersData;
if (players.Count == 0)
if (players == null || players.Count == 0)
{
// 현재 가지고 있는 캐릭터가 없다면 CharaterCreateUI 를 보여주고
UIManager.Show<CharaterCreateUI>(UIList.CharaterCreateUI);