[freeciv/freeciv] 19efb0: sha_unit_new(): Make unit_virtual_create() call legal

freeciv-commits <[email protected]>
Newsgroups gmane.games.freeciv.devel
Message-ID <freeciv/freeciv/push/refs/heads/S2_6/[email protected]>
  Branch: refs/heads/S2_6
  Home:   https://github.com/freeciv/freeciv
  Commit: 19efb0dfae0fbd0dc57d01a23269941e002d0f02
      https://github.com/freeciv/freeciv/commit/19efb0dfae0fbd0dc57d01a23269941e002d0f02
  Author: Marko Lindqvist <[email protected]>
  Date:   2026-02-13 (Fri, 13 Feb 2026)

  Changed paths:
    M client/agents/sha.c

  Log Message:
  -----------
  sha_unit_new(): Make unit_virtual_create() call legal

unit_virtual_create() was called with a nullptr unit type,
which is not considered legal value. Pass original unit's
type instead.

See RM #1926

Signed-off-by: Marko Lindqvist <[email protected]>



To unsubscribe from these emails, change your notification settings at https://github.com/freeciv/freeciv/settings/notifications
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.