diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-03-03 11:46:03 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-03-03 11:46:03 +0300 |
| commit | 0e5d37666f92bc75f12f118fc77a7e4af4a5924b (patch) | |
| tree | 967b9de608288a3cfbd40aaf284b6bd7b640a4b9 /bot.go | |
| parent | 093103bdd7cd02e10f2339e7beeb71375fb16256 (diff) | |
Enha: id for card map
Diffstat (limited to 'bot.go')
| -rw-r--r-- | bot.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1382,8 +1382,8 @@ func applyCharCard(cc *models.CharCard, loadHistory bool) { } func charToStart(agentName string, keepSysP bool) bool { - cc, ok := sysMap[agentName] - if !ok { + cc := GetCardByRole(agentName) + if cc == nil { return false } applyCharCard(cc, keepSysP) |
