Actions
Bug #730
closedS3_1 threaded AI dai_assess_danger_player() call has parameters in wrong order
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
Updated by Marko Lindqvist 6 months ago
- File 0001-Threaded-AI-Correct-dai_assess_danger_player-call-pa.patch 0001-Threaded-AI-Correct-dai_assess_danger_player-call-pa.patch added
- Status changed from New to Resolved
- Assignee set to Marko Lindqvist
- Priority changed from Normal to Emergency Fix
Actions