Error message when I open the class selector

Bug #487916 reported by NickTowers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gang Garrison 2
Fix Released
Medium
Unassigned

Bug Description

It's the fifth time it happens.

___________________________________________
ERROR in
action number 1
of Draw Event
for object ClassSelectController:

Error in code at line 21:
       draw_sprite_ext(ClassSelectSpritesS,newclass+indexoffset,xoffset+drawx,yoffset,1,1,0,c_white, alpha);

at position 51: Unknown variable indexoffset

Revision history for this message
MedO (smaxein) wrote :

This happens when the class select controller is open while the user is spectating. The best solution is probably to read, check and store the player's team in an object variable when the controller is created, and/or to prevent the controller from staying open when the player switches to spectator.

Changed in gg2:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
MedO (smaxein) wrote :

The ClassSelectController will now notice when the team changes to spectator and automatically close itself. In bad lag situations that might cause the menu to appear and then suddenly vanish in those cases where the error would have occured before, but I think that's good enough.

Changed in gg2:
status: Triaged → Fix Committed
MedO (smaxein)
Changed in gg2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.