From fcd74b54ccea7b05656a633f356c376c9bee4a75 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 13 Dec 2024 19:58:16 -0800 Subject: [PATCH] validation: fix writer --- validation/src/validator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation/src/validator.rs b/validation/src/validator.rs index d9289c7..1b57f66 100644 --- a/validation/src/validator.rs +++ b/validation/src/validator.rs @@ -133,7 +133,7 @@ impl Validator{ if modified{ // serialize model (slow!) let mut data=Vec::new(); - rbx_binary::to_writer(&mut data,&dom,&[dom.root_ref()]).map_err(ValidateError::WriteDom)?; + rbx_binary::to_writer(&mut data,&dom,dom.root().children()).map_err(ValidateError::WriteDom)?; // upload a model lol let model_id=if let Some(model_id)=validate_info.ValidatedModelID{