Avoid variable name shadowing in all engine source files.

PiperOrigin-RevId: 519179975
Change-Id: I2f9269cd88857b9e758c63978b20f9c9dd17207e
This commit is contained in:
Yuval Tassa
2023-03-24 10:32:54 -07:00
committed by Copybara-Service
parent 3f14d97f6b
commit d6f2dd143d
9 changed files with 85 additions and 82 deletions
+2 -2
View File
@@ -380,8 +380,8 @@ const mjpPlugin* mjp_getPluginUnsafe(const char* name, int* slot, int nslot) {
return nullptr;
}
Global& plugin = GetGlobal();
PluginTable* table = &plugin.table();
Global& plugins = GetGlobal();
PluginTable* table = &plugins.table();
int found_slot = 0;
while (table) {
for (int i = 0;