You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should have one additional check which ensures the creep value is defined, and if it isn't, it should return C.ERR_INVALID_TARGET as seen here (structures.js) in the original in-vm bindings, and here (creep.js) in the original intents processor.
Relevant stack trace:
Error: TypeError: Cannot read property 'my' of undefined
at checkCommon (webpack:/module/xxscreeps/src/mods/creep/creep.ts:440:13)
at webpack:/module/xxscreeps/src/mods/spawn/spawn.ts:276:9
at chainIntentChecks (webpack:/module/xxscreeps/src/game/checks.ts:7:18)
at checkRenewCreep (webpack:/module/xxscreeps/src/mods/spawn/spawn.ts:274:9)
at webpack:/module/xxscreeps/src/mods/spawn/spawn.ts:157:10
at chainIntentChecks (webpack:/module/xxscreeps/src/game/checks.ts:7:18)
at StructureSpawn.renewCreep (webpack:/module/xxscreeps/src/mods/spawn/spawn.ts:156:10)
The text was updated successfully, but these errors were encountered:
Hexcede
changed the title
[Bug] StructureSpawn.renewCreep throws when undefined is passed as the creep (creep.my)
[Compat] StructureSpawn.renewCreep throws when undefined is passed as the creep (creep.my)
Jan 27, 2022
Hexcede
changed the title
[Compat] StructureSpawn.renewCreep throws when undefined is passed as the creep (creep.my)
[Compat] StructureSpawn.renewCreep throws when undefined is passed as the creep
Jan 27, 2022
When
StructureSpawn.renewCreep
is called withundefined
as the creep value, it results in a runtime error in creep'scheckCommon
function.Location of error in source (
creep.ts
)This should have one additional check which ensures the creep value is defined, and if it isn't, it should return
C.ERR_INVALID_TARGET
as seen here (structures.js
) in the original in-vm bindings, and here (creep.js
) in the original intents processor.Relevant stack trace:
The text was updated successfully, but these errors were encountered: