Project

General

Profile

Actions

Bug #2432

open

reversed condition in unit activity change test

Added by Andrew McGuinness 11 days ago. Updated 9 days ago.

Status:
In Review
Priority:
Normal
Category:
client-common
Target version:
Start date:
10/28/2026
Due date:
% Done:

0%

Estimated time:

Description

In packhand.c , when checking if a unit change represents a change in activity, the condition has `punit->activity_target == packet_unit->activity_target` instead of `!=`.

Meaning in practice this condition is nearly always true (since activity_target is usually null).

Changing it doesn't have any obvious effect I can see, but it's probably at least a small optimisation. The comparison has been this way for 13 years so I doubt it is doing much harm.


Files

unitchg.patch (617 Bytes) unitchg.patch Andrew McGuinness, 10/28/2026 10:51 PM
Actions

Also available in: Atom PDF