Skip to content

Comments

Fix broken isObjectType CpuShip checks#2729

Merged
daid merged 1 commit intodaid:masterfrom
oznogon:fix-isobjecttype
Feb 19, 2026
Merged

Fix broken isObjectType CpuShip checks#2729
daid merged 1 commit intodaid:masterfrom
oznogon:fix-isobjecttype

Conversation

@oznogon
Copy link
Contributor

@oznogon oznogon commented Feb 19, 2026

Some, but not all, isObjectType() checks for CpuShips had broken checks for AIController components:

elseif typ == "CpuShip" then
    return obj.ai_controller

Fix those checks:

elseif typ == "CpuShip" then
    return obj.components.ai_controller

Checks for CpuShips had broken checks for AIController components.
Fix those checks.
@daid daid merged commit d60f093 into daid:master Feb 19, 2026
5 checks passed
@oznogon oznogon deleted the fix-isobjecttype branch February 20, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants