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:
Maruno17
2021-05-07 18:20:52 +01:00
parent 6efca2f9a8
commit 654be6c1de
6 changed files with 10 additions and 21 deletions

View File

@@ -367,7 +367,7 @@ module Compiler
elsif enumer.is_a?(Symbol) || enumer.is_a?(String)
if GameData.const_defined?(enumer.to_sym)
enumer = GameData.const_get(enumer.to_sym)
return nil if nil_or_empty?(re) || !enumer.exists?(ret.to_sym)
return nil if nil_or_empty?(ret) || !enumer.exists?(ret.to_sym)
return ret.to_sym
end
enumer = Object.const_get(enumer.to_sym)