[Commits] [wesnoth/wesnoth] 7c3d78: Fix Coverity divide-by-zero warning

GitHub noreply at github.com
Sun Sep 17 12:53:21 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 7c3d78951403ddf656b15cdf2ae83354a76dc177
      https://github.com/wesnoth/wesnoth/commit/7c3d78951403ddf656b15cdf2ae83354a76dc177
  Author: Gregory A Lundberg <gregory_lundberg at gmx.com>
  Date:   2017-09-17 (Sun, 17 Sep 2017)

  Changed paths:
    M src/display.cpp

  Log Message:
  -----------
  Fix Coverity divide-by-zero warning

Closes CID 1380221

Instead of assert() throw an exception explaining what went wrong.





More information about the Commits mailing list