Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7970


Ignore:
Timestamp:
Feb 26, 2011, 7:38:59 PM (13 years ago)
Author:
dafrick
Message:

Fixing stupid bug in QuestManager, its really strange that it worked so far.

Location:
code/branches/usability/src/modules/questsystem
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/usability/src/modules/questsystem/QuestItem.cc

    r7456 r7970  
    8787    void QuestItem::setId(const std::string & id)
    8888    {
    89         if(id.compare(BLANKSTRING) == 0) // Checks whether the id is a valid id.
     89        if(id == "") // Checks whether the id is a valid id.
    9090        {
    9191            COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl;
  • code/branches/usability/src/modules/questsystem/QuestManager.cc

    r7552 r7970  
    9191    /**
    9292    @brief
    93         Registers a Quest with the QuestManager to make it globally accessable.
     93        Registers a Quest with the QuestManager to make it globally accessible.
    9494        Uses it's id to make sure to be able to be identify and retrieve it later.
    9595    @param quest
     
    129129    /**
    130130    @brief
    131         Registers a QuestHint with the QuestManager to make it globally accessable.
     131        Registers a QuestHint with the QuestManager to make it globally accessible.
    132132        Uses it's id to make sure to be able to be identify and retrieve it later.
    133133    @param hint
     
    178178    Quest* QuestManager::findQuest(const std::string & questId)
    179179    {
    180         if(questId.compare(BLANKSTRING) == 1) // Check vor validity of the given id.
     180        if(questId == "") // Check for validity of the given id.
    181181            ThrowException(Argument, "Invalid questId.");
    182182
     
    207207    QuestHint* QuestManager::findHint(const std::string & hintId)
    208208    {
    209         if(hintId.compare(BLANKSTRING) == 1) // Check vor validity of the given id.
     209        if(hintId == "") // Check for validity of the given id.
    210210            ThrowException(Argument, "Invalid hintId.");
    211211
Note: See TracChangeset for help on using the changeset viewer.