1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Fix for Portal of Summoning. (ID is type of object, id is position of object instance in the map vector of object instances)

Most correct way of getting visitable position ;)
This commit is contained in:
Michał W. Urbańczyk
2010-07-12 10:42:51 +00:00
parent fa4ee94cf9
commit 49b7fc590d
2 changed files with 5 additions and 5 deletions

View File

@@ -732,10 +732,10 @@ DLL_EXPORT void HeroLevelUp::applyGs( CGameState *gs )
}
switch (it->subtype)
{
case 1:
it->val = (level * (*creatures)[it->additionalInfo]->attack)/creLevel /20;
case 1:
it->val = (level * (*creatures)[it->additionalInfo]->attack)/creLevel /20;
break;
case 2:
case 2:
it->val = (level * (*creatures)[it->additionalInfo]->defence)/creLevel /20;
break;
}