summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2TenantArray.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2TenantArray.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/T2DLL/T2TenantArray.cpp b/src/T2DLL/T2TenantArray.cpp
index 4c536e8..9dd23ee 100644
--- a/src/T2DLL/T2TenantArray.cpp
+++ b/src/T2DLL/T2TenantArray.cpp
@@ -61,12 +61,15 @@ void T2TenantArray::TenantRemoved(unsigned int id) {
}
T2Tenant* T2TenantArray::GetTenantByPID(DWORD pluginID) {
+ T2EquipDef *theDef;
+ CProgramPlugin *thePlugin;
+
for (int i = 0; i < kGroupSize; i++) {
if (mTenants[i].IsUsed()) {
- T2EquipDef *equipDef = mTenants[i].GetEquipDef();
- CProgramPlugin *plugin = equipDef ? equipDef->GetPlugin() : NULL;
+ theDef = mTenants[i].GetEquipDef();
+ thePlugin = theDef ? theDef->GetPlugin() : NULL;
- if (plugin && plugin->GetID() == pluginID)
+ if (thePlugin && thePlugin->GetID() == pluginID)
return &mTenants[i];
}
}