mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
Stickers: fixed nullref
This commit is contained in:
parent
8238ce6ca9
commit
d635b45db2
1 changed files with 7 additions and 1 deletions
|
@ -65,7 +65,13 @@ public partial class StickerSystem
|
|||
continue;
|
||||
}
|
||||
|
||||
_playerStickers.Remove(_playerStickers.First(x => x.Value == stickerData).Key);
|
||||
for (int j = 0; j < _playerStickers.Values.Count; j++)
|
||||
{
|
||||
if (_playerStickers.Values.ElementAt(j) != stickerData) continue;
|
||||
_playerStickers.Remove(_playerStickers.Keys.ElementAt(j));
|
||||
break;
|
||||
}
|
||||
|
||||
_deadStickerPool.RemoveAt(i);
|
||||
stickerData.Cleanup();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue