mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-09 06:12:34 +01:00
Couple more gcc warnings killed, fixed a bug within protocol.c, and added initial colour detections based on protocol findings.
This commit is contained in:
parent
70d7785fea
commit
db5b776326
5 changed files with 26 additions and 11 deletions
|
|
@ -458,7 +458,8 @@ void board_load_board(int board_type)
|
|||
perror("SYSERR: Error reading board");
|
||||
return;
|
||||
}
|
||||
j = fread(&(num_of_msgs[board_type]), sizeof(int), 1, fl);
|
||||
if (fread(&(num_of_msgs[board_type]), sizeof(int), 1, fl) != 1)
|
||||
return;
|
||||
if (num_of_msgs[board_type] < 1 || num_of_msgs[board_type] > MAX_BOARD_MESSAGES) {
|
||||
log("SYSERR: Board file %d corrupt. Resetting.", board_type);
|
||||
board_reset_board(board_type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue