diff options
author | yenatch <yenatch@gmail.com> | 2013-11-05 14:10:25 -0500 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2013-11-05 14:10:25 -0500 |
commit | 4a7373d8e79d17f10ebafa3ccef7b822a5b139af (patch) | |
tree | 16fa58ef5dedf3183e6c73af7e15277f972a9642 | |
parent | f790933680e3a91706b323c87ec9cbd1cb984869 (diff) |
audio.py: cleaner key deletion
-rw-r--r-- | pokemontools/audio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pokemontools/audio.py b/pokemontools/audio.py index 25c41c7..5318ebe 100644 --- a/pokemontools/audio.py +++ b/pokemontools/audio.py @@ -113,13 +113,13 @@ class Channel: if class_.macro_name == 'notetype': if self.channel in [4, 8]: class_.size -= 1 - class_.params = dict(class_.params.items()[:-1]) + del class_.params[class_.size - 1] # togglenoise only has a param when toggled on elif class_.macro_name in ['togglenoise', 'sfxtogglenoise']: if noise: class_.size -= 1 - class_.params = dict(class_.params.items()[:-1]) + del class_.params[class_.size - 1] noise = not noise asm = class_.to_asm() |