You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Don't use a const reference for the enum constructor in Variant
This commit is contained in:
@@ -488,7 +488,7 @@ public:
|
||||
Variant(const IPAddress &p_address);
|
||||
|
||||
#define VARIANT_ENUM_CLASS_CONSTRUCTOR(m_enum) \
|
||||
Variant(const m_enum &p_value) { \
|
||||
Variant(m_enum p_value) { \
|
||||
type = INT; \
|
||||
_data._int = (int64_t)p_value; \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user