Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert IsValidConsoleColour(colour_code) #4371

Closed
DorpsGek opened this issue Jan 3, 2011 · 2 comments
Closed

assert IsValidConsoleColour(colour_code) #4371

DorpsGek opened this issue Jan 3, 2011 · 2 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Jan 3, 2011

dihedral opened the ticket and wrote:

reproduce with dedicated console command 'say hi'

Error: Assertion failed at line 133 of /home/nathanael/Development/openttd/src/console.cpp: IsValidConsoleColour(colour_code)

(gdb) bt
# 0 0x00007ffff653ba75 in raise () from /lib/libc.so.6
# 1 0x00007ffff653f5c0 in abort () from /lib/libc.so.6
# 2 0x000000000069bca5 in error(char const*, ...) ()
# 3 0x0000000000584894 in IConsolePrintF(ConsoleColour, char const*, ...) ()
# 4 0x000000000062bb6d in NetworkTextMessage(NetworkAction, ConsoleColour, bool, char const*, char const*, long long) ()
# 5 0x00000000006408e6 in NetworkServerSendChat(NetworkAction, DestType, int, char const*, ClientID, long long, bool) ()
# 6 0x0000000000581bc7 in ConSay(unsigned char, char**) ()
# 7 0x0000000000584ec2 in IConsoleCmdExec(char const*) ()
# 8 0x00000000007cdc65 in VideoDriver_Dedicated::MainLoop() ()
# 9 0x000000000069dfa0 in ttd_main(int, char**) ()
# 10 0x00007ffff6526c4d in __libc_start_main () from /lib/libc.so.6
# 11 0x00000000004b7c49 in _start ()

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/4371
@DorpsGek
Copy link
Member Author

DorpsGek commented Jan 3, 2011

SmatZ wrote:

Probably caused by:
network_server.cpp:1145 NetworkTextMessage(action, (ConsoleColour)GetDrawStringCompanyColour(ci->client_playas), false, ci->client_name, msg, data);
where it casts "something" to ConsoleColour


This comment was imported from FlySpray: https://bugs.openttd.org/task/4371#comment9407

@DorpsGek
Copy link
Member Author

DorpsGek commented Jan 3, 2011

Rubidium closed the ticket.

Reason for closing: Fixed

In r21707


This comment was imported from FlySpray: https://bugs.openttd.org/task/4371

@DorpsGek DorpsGek closed this as completed Jan 3, 2011
@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant