mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-04-19 21:33:15 +02:00
The from_dict() should handle empty dictionaries without errors.
This commit is contained in:
parent
0bce71e5b7
commit
0ac9a8770e
@ -92,8 +92,6 @@ Dictionary InputProfile::to_dict() const {
|
||||
return dict;
|
||||
}
|
||||
void InputProfile::from_dict(const Dictionary &dict) {
|
||||
ERR_FAIL_COND(dict.empty());
|
||||
|
||||
_data = dict.get("data", Array());
|
||||
|
||||
emit_change();
|
||||
|
Loading…
Reference in New Issue
Block a user