Skip to content

Commit

Permalink
Set default BGE_VALUE=1 instead of -1
Browse files Browse the repository at this point in the history
  • Loading branch information
APN-Pucky committed May 5, 2019
1 parent 7f8943d commit 36f2591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tyrant_optimize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2856,7 +2856,7 @@ bool parse_bge(
if (passive_bge_id != PassiveBGE::no_bge)
{
// map bge id to its value (if present otherwise zero)
signed short bge_value = (tokens.size() > 1) ? boost::lexical_cast<signed short>(tokens[1]) : -1;
signed short bge_value = (tokens.size() > 1) ? boost::lexical_cast<signed short>(tokens[1]) : 1;
if (!bge_value)
throw std::runtime_error("BGE " + skill_name + ": zero value means no BGE");
if ((player == 0) or (player == 2))
Expand Down

0 comments on commit 36f2591

Please sign in to comment.