Skip to content

Commit

Permalink
Fixes overwrite memory command.
Browse files Browse the repository at this point in the history
  • Loading branch information
Torantulino committed Apr 3, 2023
1 parent 6a0a135 commit ba6df36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def delete_memory(key):


def overwrite_memory(key, string):
if key >= 0 and key < len(mem.permanent_memory):
if int(key) >= 0 and key < len(mem.permanent_memory):
_text = "Overwriting memory with key " + \
str(key) + " and string " + string
mem.permanent_memory[key] = string
Expand Down

0 comments on commit ba6df36

Please sign in to comment.