(0003385)
|
Ivan
|
2013-02-17 17:12
|
|
Trying to run vcmi using valgrind with ~1 fps speed. Found uninitialized value that may cause this bug:
==5093== Thread 4:
==5093== Conditional jump or move depends on uninitialised value(s)
==5093== at 0x5B08539: IBonusBearer::getEffect(unsigned short, int) const (HeroBonus.cpp:508)
==5093== by 0x579FE27: CBattleInfoCallback::calculateDmgRange(BattleAttackInfo const&) const (CBattleCallback.cpp:817)
==5093== by 0x57A1EE3: CBattleInfoCallback::battleEstimateDamage(BattleAttackInfo const&, std::pair<unsigned int, unsigned int>*) const (CBattleCallback.cpp:994)
==5093== by 0x57A1DCE: CBattleInfoCallback::battleEstimateDamage(CStack const*, CStack const*, std::pair<unsigned int, unsigned int>*) const (CBattleCallback.cpp:984)
==5093== by 0x974525: CBattleInterface::handleHex(BattleHex, int) (CBattleInterface.cpp:3051)
==5093== by 0x972704: CBattleInterface::mouseMoved(SDL_MouseMotionEvent const&) (CBattleInterface.cpp:1002)
==5093== by 0x9D1BC1: CGuiHandler::handleMoveInterested(SDL_MouseMotionEvent const&) (CGuiHandler.cpp:352)
==5093== by 0x9D1A63: CGuiHandler::handleMouseMotion(SDL_Event*) (CGuiHandler.cpp:333)
==5093== by 0x9D0536: CGuiHandler::handleEvent(SDL_Event*) (CGuiHandler.cpp:214)
==5093== by 0x9D0126: CGuiHandler::handleEvents() (CGuiHandler.cpp:177)
==5093== by 0xC562AF: CPlayerInterface::update() (CPlayerInterface.cpp:1568)
==5093== by 0xC5653B: non-virtual thunk to CPlayerInterface::update() (CPlayerInterface.cpp:1582) |
|