Skip to content

Commit

Permalink
禁止设置冷却时间为负数
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Oct 16, 2013
1 parent 04e0006 commit 48b9bb0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ namespace base { namespace warcraft3 { namespace japi {
{
if (is_valid())
{
if (value < 0.f) value = 0.f;

uintptr_t rf = running_info();
if (!rf)
{
Expand Down

0 comments on commit 48b9bb0

Please sign in to comment.