diff options
| author | tpart <tpart120@proton.me> | 2024-06-26 13:00:50 +0200 | 
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2024-06-26 13:00:50 +0200 | 
| commit | 53bad26b05a558c819f29d80e22f584c00802951 (patch) | |
| tree | 5f3991fe71f07d4da3bdf8081a1f15b88b4ef278 /client | |
| parent | fcbf473429275556f6ea88f5ac40fb9411edd445 (diff) | |
| download | hurrycurry-53bad26b05a558c819f29d80e22f584c00802951.tar hurrycurry-53bad26b05a558c819f29d80e22f584c00802951.tar.bz2 hurrycurry-53bad26b05a558c819f29d80e22f584c00802951.tar.zst | |
Make sure character index is not out of bounds
Diffstat (limited to 'client')
| -rw-r--r-- | client/player/character/character.gd | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/client/player/character/character.gd b/client/player/character/character.gd index 224eb356..820cba74 100644 --- a/client/player/character/character.gd +++ b/client/player/character/character.gd @@ -62,6 +62,7 @@ func _process(delta):  func select_hairstyle(id: int):  	if id < 0:  		id *= -1 # TODO: Select customer character +	id = id % hairstyles.keys().size()  	var target = hairstyles.keys()[id]  	for k in hairstyles.keys():  		if k == target: | 
