mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Refactoring and Bugfixes (#127)
* Replacing nil + compact! with delete, delete_at and delete_if wherever possible * Fixed Terrain Tag editor not setting the correct terrain * Fixed Text Cursor in Animation Editor not going right
This commit is contained in:
@@ -48,12 +48,7 @@ class PokeBattle_Battle
|
||||
end
|
||||
else
|
||||
items = pbGetOwnerItems(idxBattler)
|
||||
items.each_with_index do |thisItem,i|
|
||||
next if thisItem!=item
|
||||
items[i] = nil
|
||||
break
|
||||
end
|
||||
items.compact!
|
||||
items.delete_at(items.index(item))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user