So, everything I've read says this is a bit of a dirty "fix", but I tried it and it appears to work. I didn't get the crash, Gabby's job changed to "Stripper", and when I opened console and typed
print strip_club_no_of_strippers
after the dialog ended it returned 5, which is what it should theoretically be if it incremented properly
I added two lines to role_cousin.rpy, one at line 124 and another at what will be line 129 after the first line is added. So the block between lines 123-131 should look like
Code:
def special_stripper_hire(the_person):
global strip_club_no_of_strippers #defining the global keyword to prevent crash bug? ~dalzomo
strip_club_no_of_strippers += 1 #Increase the list target to account for Gabrielle
stripper_hire(the_person) #Add her to the stripper list
def special_stripper_leave(the_person):
global strip_club_no_of_strippers #defining the global keyword to prevent crash bug? ~dalzomo
strip_club_no_of_strippers -= 1 #Decrease the list target to account for Gabrielle leaving
stripper_replace(the_person) #Remove her from the pool and generate a replacement if necessary
Remember to space, not tab, while editing