mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Fix some code found by Coverity Scan and PVS Studio
This commit is contained in:
parent
e466dc2daa
commit
aab8da25ad
24 changed files with 71 additions and 65 deletions
|
@ -1118,7 +1118,7 @@ void VisualServer::mesh_add_surface_from_arrays(RID p_mesh, PrimitiveType p_prim
|
|||
}
|
||||
offsets[i] = elem_size;
|
||||
continue;
|
||||
} break;
|
||||
}
|
||||
default: {
|
||||
ERR_FAIL();
|
||||
}
|
||||
|
@ -1286,7 +1286,7 @@ Array VisualServer::_get_array_from_surface(uint32_t p_format, PoolVector<uint8_
|
|||
}
|
||||
offsets[i] = elem_size;
|
||||
continue;
|
||||
} break;
|
||||
}
|
||||
default: {
|
||||
ERR_FAIL_V(Array());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue