You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Fix some issues found by cppcheck.
This commit is contained in:
@@ -105,7 +105,7 @@ Variant PackedDataContainer::_get_at_ofs(uint32_t p_ofs, const uint8_t *p_buf, b
|
||||
|
||||
if (type == TYPE_ARRAY || type == TYPE_DICT) {
|
||||
Ref<PackedDataContainerRef> pdcr = memnew(PackedDataContainerRef);
|
||||
Ref<PackedDataContainer> pdc = Ref<PackedDataContainer>((PackedDataContainer *)this);
|
||||
Ref<PackedDataContainer> pdc = Ref<PackedDataContainer>(const_cast<PackedDataContainer *>(this));
|
||||
|
||||
pdcr->from = pdc;
|
||||
pdcr->offset = p_ofs;
|
||||
|
||||
Reference in New Issue
Block a user