Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550890 - games-simulation/qct-0.7-r1: crash due to uninitialized variable
Summary: games-simulation/qct-0.7-r1: crash due to uninitialized variable
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2015-05-31 16:34 UTC by Martin Doucha
Modified: 2016-01-28 05:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Doucha 2015-05-31 16:34:07 UTC
When you train one of the townspeople to work as beggar, the game sometimes crashes at the end of turn with the following traceback:

Traceback (most recent call last):
  File "/usr/share/games/qct/qct.py", line 30, in <module>
    main()
  File "/usr/share/games/qct/qct.py", line 26, in main
    driver.run()
  File "/usr/share/games/qct/states.py", line 54, in run
    currentState.event(event.key, 1, event.unicode)
  File "/usr/share/games/qct/gui.py", line 132, in event
    eventable.event(key, pressed, unicode)
  File "/usr/share/games/qct/widgets.py", line 252, in event
    self.callback()
  File "/usr/share/games/qct/gui.py", line 181, in callback
    self.parent.callback(self)
  File "/usr/share/games/qct/town.py", line 203, in callback
    self.menuAction(object.getChosenIndex())
  File "/usr/share/games/qct/town.py", line 239, in menuAction
    self.endTurn()
  File "/usr/share/games/qct/town.py", line 214, in endTurn
    self.subState = turn.EndOfTurnScreen(self.driver(), self)
  File "/usr/share/games/qct/turn.py", line 24, in __init__
    self.costs, self.income = self.updateEconomy()
  File "/usr/share/games/qct/turn.py", line 301, in updateEconomy
    townie.job.income(person, townie)))
  File "/usr/share/games/qct/specializations.py", line 274, in income
    return int(result * mods)
UnboundLocalError: local variable 'result' referenced before assignment
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2016-01-28 05:55:51 UTC
games-simulation/qct is gone.