Skip to content

prevent unintended behaviour and crash in protostar#11

Open
justamirror wants to merge 1 commit into
EremelMods:mainfrom
justamirror:patch-1
Open

prevent unintended behaviour and crash in protostar#11
justamirror wants to merge 1 commit into
EremelMods:mainfrom
justamirror:patch-1

Conversation

@justamirror
Copy link
Copy Markdown

protostar stores the played hand in poker_hand to be accessed later, in after. if a poker hand is not allowed, joker_main is not called but after is. so after is using an outdated or empty poker_hand value in this case. this fixes that by adding guards to prevent after triggering when the poker_hand is empty and emptying it when after triggers so the value cannot be used later

protostar stores the played hand in poker_hand to be accessed later, in after. if a poker hand is not allowed, joker_main is not called but after is. so after is using an outdated or empty poker_hand value in this case. this fixes that by adding guards to prevent after triggering when the poker_hand is empty and emptying it when after triggers so the value cannot be used later
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants