Ticket #46465

tileset_setup_unit_direction() expects unit_activity_name(ACTIVITY_LAST) to be valid string

오픈 날짜: 2023-01-07 00:10 마지막 업데이트: 2023-01-12 03:31

Reporter:
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
1

Details

Even when called with ACTIVITY_LAST, tileset_setup_unit_direction() does:

--
fc_snprintf(buf, sizeof(buf), "%s_%s_%s", base_str,
unit_activity_name(activity),
dir_get_tileset_name(loaddir));

Ticket History (3/5 Histories)

2023-01-07 00:10 Updated by: cazfi
  • New Ticket "tileset_setup_unit_direction() expects unit_activity_name(ACTIVITY_LAST) to be valid string" created
2023-01-07 00:16 Updated by: cazfi
댓글 올리기

Though it's not possible to end there with such illegal activity, heuristics of a bit older gcc (seen on Ubuntu Focal) fail to find that out, and give a warning.

2023-01-07 01:11 Updated by: cazfi
  • 소유자 Update from (None) to cazfi
  • Resolution Update from None to Accepted
2023-01-12 03:31 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login