Ticket #45961

map_claim_base(): Allocate could_see_unit only when needed

Open Date: 2022-10-24 13:52 Last Update: 2022-11-18 11:06

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

Details

could_see_unit in map_claim_base() is only used when pextra->eus != EUS_NORMAL. Also allocate it only in those cases.

Clang analyzer warning made me to look at that code, but this change (alone) is somewhat unlikely to fix the warning.

Ticket History (3/4 Histories)

2022-10-24 13:52 Updated by: cazfi
  • New Ticket "map_claim_base(): Allocate could_see_unit only when needed" created
2022-11-12 22:41 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
2022-11-18 11:06 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