[Commits] [wesnoth/wesnoth] 37ac44: Quell CID 1380157

GitHub noreply at github.com
Tue Oct 31 20:09:36 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 37ac4414b9e8ec1458e46b96b6564e15c7eb63ac
      https://github.com/wesnoth/wesnoth/commit/37ac4414b9e8ec1458e46b96b6564e15c7eb63ac
  Author: Gregory A Lundberg <gregory_lundberg at gmx.com>
  Date:   2017-10-31 (Tue, 31 Oct 2017)

  Changed paths:
    M src/pathfind/pathfind.cpp

  Log Message:
  -----------
  Quell CID 1380157

Coverity is complaining that the index(x,y) function might return a negative value, indicating that x and/or y were not on the map.

This is impossible.

To quell the warning, use an assert().

Closes CID 1380157





More information about the Commits mailing list