Sheinen Highfive
In a hot scale.
Dude, take a look:
I have replaced the whole code:
Lua:std::string Mission::getDescription(Player* player) { std::string value; player->getStorage(storageId, value); if(state.size()) return parseStorages(state, value); if(atoi(value.c_str()) >= endValue) return parseStorages(states.rbegin()->second, value); for(int32_t i = endValue; i >= startValue; --i) { player->getStorage(storageId, value); if(atoi(value.c_str()) == i) return parseStorages(states[i - startValue], value); } return "Couldn't retrieve any mission description, please report to a gamemaster."; }
With the code you've posted, but I receive this error:
Any ideas? Using REV 3884
# same error with rev3882, using windows 7 32bit to compile...
Solutions? *-*
bump