mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed Game Variables that are nil being treated as 0 instead, fixed missing error message when a required plugin is missing
This commit is contained in:
@@ -479,7 +479,7 @@ end
|
||||
|
||||
def pbConvertItemToPokemon(variable, array)
|
||||
item = GameData::Item.get(pbGet(variable))
|
||||
pbSet(variable, 0)
|
||||
pbSet(variable, nil)
|
||||
for i in 0...(array.length / 2)
|
||||
next if item != array[2 * i]
|
||||
pbSet(variable, GameData::Species.get(array[2 * i + 1]).id)
|
||||
|
||||
Reference in New Issue
Block a user