mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-27 11:29:19 +01:00
Check if the ESS singleton is null in spell's constructor.
This commit is contained in:
parent
e37f5a7fe5
commit
13eb5ab431
@ -1668,7 +1668,10 @@ Spell::Spell() {
|
|||||||
|
|
||||||
_level = 1;
|
_level = 1;
|
||||||
_rank = 0;
|
_rank = 0;
|
||||||
_scale_with_level = ESS::get_singleton()->get_scale_spells_by_default();
|
|
||||||
|
if (ESS::get_singleton()) {
|
||||||
|
_scale_with_level = ESS::get_singleton()->get_scale_spells_by_default();
|
||||||
|
}
|
||||||
|
|
||||||
_global_cooldown_enabled = true;
|
_global_cooldown_enabled = true;
|
||||||
_is_local_spell = false;
|
_is_local_spell = false;
|
||||||
@ -1726,7 +1729,9 @@ Spell::Spell() {
|
|||||||
_aura_is_debuff = false;
|
_aura_is_debuff = false;
|
||||||
_aura_hide = false;
|
_aura_hide = false;
|
||||||
|
|
||||||
_aura_scale_with_level = ESS::get_singleton()->get_scale_spells_by_default();
|
if (ESS::get_singleton()) {
|
||||||
|
_aura_scale_with_level = ESS::get_singleton()->get_scale_spells_by_default();
|
||||||
|
}
|
||||||
|
|
||||||
_aura_damage_enabled = false;
|
_aura_damage_enabled = false;
|
||||||
_aura_damage_type = 0;
|
_aura_damage_type = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user