This seems to have made the compiler lose track of ter_color at 5099, inside the if-statement.  ("May be uninitialized" warning.)