This commit is contained in:
1 file changed
+6
@@ -23,6 +23,12 @@ namespace CreatureLib::Library {
|
||||
EffectParameter(const EffectParameter& other) = delete;
|
||||
EffectParameter& operator=(const EffectParameter& other) = delete;
|
||||
|
||||
~EffectParameter() {
|
||||
if (_type == EffectParameterType::String) {
|
||||
delete[](char*) _val;
|
||||
}
|
||||
}
|
||||
|
||||
EffectParameterType GetType() const noexcept { return _type; }
|
||||
bool AsBool() const {
|
||||
if (_type != EffectParameterType::Bool) {
|
||||
|
||||
Reference in new issue
Block a user