AI enhances past its building limit
Bug #1729856 reported by
GunChleoc
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I got the assert failure below:
src/ai/
Reason: the building statistics show 1 colosseum too many after saveloading. When loading from the savegames attached to this bug, we get 2 colosseums built + 1 under construction. Setting is Weak AI, which has a limit of 2.
Related branches
lp:~widelands-dev/widelands/bug-1729856
- GunChleoc: Approve
-
Diff: 29 lines (+11/-1)1 file modifiedsrc/ai/defaultai_warfare.cc (+11/-1)
tags: | added: savegame |
summary: |
- DefaultAI::check_trainingsites(uint32_t): Assertion - `tso.bo->total_count() <= tso.bo->cnt_limit_by_aimode' failed + Saveloading misreports the number of buildings, resulting in an AI crash |
description: | updated |
Changed in widelands: | |
status: | New → Fix Committed |
assignee: | TiborB (tiborb95) → nobody |
To post a comment you must log in.
Do you have an idea what trainingsite it was?
Were some LUA scripting involved?