Decoder decode function should take a non-const pointer to mjResource.

This is because mjcReadResource requires a non-const pointer.

PiperOrigin-RevId: 844737328
Change-Id: I88d217aa85a66023f6b222437403c136448cabfe
This commit is contained in:
Haroon Qureshi
2025-12-15 06:03:03 -08:00
committed by Copybara-Service
parent f0572c735a
commit 52ca07e210
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ static mjSpec* MakeSimpleSpec() {
}
// Always returns a simple mjSpec, ignoring the resource.
mjSpec* FakeDecode(const mjResource* resource) { return MakeSimpleSpec(); }
mjSpec* FakeDecode(mjResource* resource) { return MakeSimpleSpec(); }
// Can decode any resource that has a .fakeformat extension.
int FakeCanDecode(const mjResource* resource) {