Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 30, 2015, 2:36:27 PM (9 years ago)
Author:
landauf
Message:

fixed mapping of FunctionIDs - same reason like for ClassIDs in r10564

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/network/NetworkFunctionManager.cc

    r10542 r10565  
    6868        std::map<uint32_t, NetworkFunctionBase*>::iterator it = idMap_.find(id);
    6969        assert(it != idMap_.end());
    70         return it->second;
     70        if(it != idMap_.end())
     71            return it->second;
     72        else
     73            return NULL;
     74    }
     75
     76    /**
     77        @brief Cleans the NetworkID map (needed on clients for correct initialization)
     78    */
     79    void NetworkFunctionManager::clearNetworkIDs()
     80    {
     81        this->idMap_.clear();
    7182    }
    7283}
Note: See TracChangeset for help on using the changeset viewer.