mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
remove unnecessary memset from dtor
This commit is contained in:
parent
8188f957a8
commit
c6c9665c65
1 changed files with 0 additions and 1 deletions
|
@ -46,7 +46,6 @@ types::ret{index} {class_name}::{function_name}({parameters}){const_whitespace}{
|
|||
func(this{argument_comma}{arguments});
|
||||
// we need to construct it back so that it uhhh ummm doesnt crash
|
||||
// while going to the child destructors
|
||||
std::memset(this, 0, sizeof({class_name}));
|
||||
auto thing = new (this) {class_name}(std::monostate(), sizeof({class_name}));
|
||||
CCDestructor::lock(this) = true;
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue