Fix bug in compiler error string construction.
PiperOrigin-RevId: 632404023 Change-Id: I79e24e44fc4eec67b76fbf62b053b169ba3070a3
This commit is contained in:
committed by
Copybara-Service
parent
1d181786a2
commit
39601b0f52
@@ -70,7 +70,7 @@ static void checksize(double* size, mjtGeom type, mjCBase* object, const char* n
|
||||
else {
|
||||
for (int i=0; i<mjGEOMINFO[type]; i++) {
|
||||
if (size[i]<=0) {
|
||||
throw mjCError(object, "size %d must be positive in geom", "", i);
|
||||
throw mjCError(object, "size %d must be positive in geom", nullptr, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user