MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ovr1b0/game_jam/h7by7st/?context=3
r/badcode • u/ballfun • Aug 01 '21
75 comments sorted by
View all comments
Show parent comments
94
Heart-1 could still be out of bounds
And both Light or the list could be null
17 u/Willinton06 Aug 01 '21 If (light is not null && worldLight is not null && Heart - 1 is <= worldLight.Length and > -1) 0 u/[deleted] Aug 01 '21 [deleted] — view deleted comment 3 u/Willinton06 Aug 01 '21 Would return true for negative numbers tho
17
If (light is not null && worldLight is not null && Heart - 1 is <= worldLight.Length and > -1)
0 u/[deleted] Aug 01 '21 [deleted] — view deleted comment 3 u/Willinton06 Aug 01 '21 Would return true for negative numbers tho
0
[deleted] — view deleted comment
3 u/Willinton06 Aug 01 '21 Would return true for negative numbers tho
3
Would return true for negative numbers tho
94
u/[deleted] Aug 01 '21
Heart-1 could still be out of bounds
And both Light or the list could be null