mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Merge pull request #310 from nkpz/united
Fix out of range error after editing actions
This commit is contained in:
@@ -1505,7 +1505,7 @@ class KoboldStoryRegister(object):
|
||||
else:
|
||||
self.actions[i]["Probabilities"][token_num][token_option]["Used"] = False
|
||||
if "Options" in self.actions[i]:
|
||||
for j in range(len(self.actions[i]["Options"])):
|
||||
for j in reversed(range(len(self.actions[i]["Options"]))):
|
||||
if self.actions[i]["Options"][j]["text"] == text:
|
||||
del self.actions[i]["Options"][j]
|
||||
if old_text != "":
|
||||
|
Reference in New Issue
Block a user