You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
@@ -163,7 +163,7 @@ void JavaScriptObjectImpl::_get_property_list(List<PropertyInfo> *p_list) const
|
||||
}
|
||||
|
||||
void JavaScriptObjectImpl::_free_lock(void **p_lock, int p_type) {
|
||||
ERR_FAIL_COND_MSG(*p_lock == nullptr, "No lock to free!");
|
||||
ERR_FAIL_NULL_MSG(*p_lock, "No lock to free!");
|
||||
const Variant::Type type = (Variant::Type)p_type;
|
||||
switch (type) {
|
||||
case Variant::STRING: {
|
||||
|
||||
Reference in New Issue
Block a user