mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-03 23:19:22 +02:00
CBattleInfoCallback.cpp comment: point to fix #6016 for the graceful error log
This commit is contained in:
@@ -1409,7 +1409,7 @@ AttackableTiles CBattleInfoCallback::getPotentiallyAttackableHexes(
|
|||||||
|
|
||||||
if (!vstd::contains(defender->getSurroundingHexes(defenderPos), attackOriginHex))
|
if (!vstd::contains(defender->getSurroundingHexes(defenderPos), attackOriginHex))
|
||||||
{
|
{
|
||||||
// TODO: GrafDeVan/Mircea/Ivan/Dydzio added this quick fix, but the core issue should be fixed
|
// Fixed in #6016 but left as a graceful error log instead of a runtime exception that crashes
|
||||||
logGlobal->error(
|
logGlobal->error(
|
||||||
"Attempt to attack from invalid position! defenderPos (%d, %d) attackOriginHex (%d, %d)",
|
"Attempt to attack from invalid position! defenderPos (%d, %d) attackOriginHex (%d, %d)",
|
||||||
defenderPos.getX(),
|
defenderPos.getX(),
|
||||||
|
|||||||
Reference in New Issue
Block a user