static class returns option<class>, not class
This commit is contained in:
parent
8c195f224b
commit
903d05911a
|
@ -224,7 +224,7 @@ impl AsPtr for {name} {{
|
||||||
|
|
||||||
writeln!(w, "impl StaticClass for {name} {{")?;
|
writeln!(w, "impl StaticClass for {name} {{")?;
|
||||||
writeln!(w, "fn get_static_class() -> Option<UClass> {{")?;
|
writeln!(w, "fn get_static_class() -> Option<UClass> {{")?;
|
||||||
write!(w, "let class: UClass = ")?;
|
write!(w, "let class: Option<UClass> = ")?;
|
||||||
generate_find_object(&full_name, w)?;
|
generate_find_object(&full_name, w)?;
|
||||||
writeln!(w, ";")?;
|
writeln!(w, ";")?;
|
||||||
writeln!(w, "class")?;
|
writeln!(w, "class")?;
|
||||||
|
|
Loading…
Reference in a new issue