Project

General

Profile

Actions

Bug #730

closed

S3_1 threaded AI dai_assess_danger_player() call has parameters in wrong order

Added by Marko Lindqvist 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Emergency Fix
Category:
AI
Target version:
Start date:
06/27/2024
Due date:
% Done:

0%

Estimated time:

Description

S3_1 CI build fails:

../../../ai/threaded/threadedai.c:145:39: error: incompatible pointer types passing 'struct player *' to parameter of type 'const struct civ_map *' [-Werror,-Wincompatible-pointer-types]
145 | TAI_DFUNC(dai_assess_danger_player, original, &(wld.map)); | ^~~~~~
../../../ai/threaded/threadedai.c:66:45: note: expanded from macro 'TAI_DFUNC'
66 | #define TAI_DFUNC(_func, ...) _func(ait, ## VA_ARGS ); | ^~~~~~~~~
../../../ai/default/daimilitary.h:44:53: note: passing argument to parameter 'nmap' here
44 | const struct civ_map *nmap, struct player *pplayer); | ^
../../../ai/threaded/threadedai.c:145:49: error: incompatible pointer types passing 'struct civ_map *' to parameter of type 'struct player *' [-Werror,-Wincompatible-pointer-types]
145 | TAI_DFUNC(dai_assess_danger_player, original, &(wld.map)); | ^~~~~~~~
../../../ai/threaded/threadedai.c:66:45: note: expanded from macro 'TAI_DFUNC'
66 | #define TAI_DFUNC(_func, ...) _func(ait, ## VA_ARGS ); | ^~~~~~~~~
../../../ai/default/daimilitary.h:44:74: note: passing argument to parameter 'pplayer' here
44 | const struct civ_map *nmap, struct player *pplayer); | ^
2 errors generated.

Files

Actions #1

Updated by Marko Lindqvist 6 months ago

Actions #2

Updated by Marko Lindqvist 6 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF