diff options
Diffstat (limited to 'views/viewhelpers.c')
-rw-r--r-- | views/viewhelpers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/viewhelpers.c b/views/viewhelpers.c index b97a7a3..d08d6f2 100644 --- a/views/viewhelpers.c +++ b/views/viewhelpers.c @@ -74,10 +74,11 @@ bool cViewHelpers::SetDevices(bool initial, map<string,int> *intTokens, vector<m if (!device || !device->NumProvidedSystems()) { continue; } - actualNumDevices++; + map< string, string > deviceVals; stringstream strNum; strNum << actualNumDevices; + actualNumDevices++; deviceVals.insert(pair< string, string >("devices[num]", strNum.str())); deviceVals.insert(pair< string, string >("devices[type]", *(device->DeviceType()))); cCamSlot *camSlot = device->CamSlot(); |