From 48b9bb0944232aa97d562f0d6ea4a44dfaa7fccb Mon Sep 17 00:00:00 2001 From: actboy168 Date: Wed, 16 Oct 2013 21:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E6=AD=A2=E8=AE=BE=E7=BD=AE=E5=86=B7?= =?UTF-8?q?=E5=8D=B4=E6=97=B6=E9=97=B4=E4=B8=BA=E8=B4=9F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Editor/Plugin/Warcraft3/yd_jass_api/AbilityState.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Development/Editor/Plugin/Warcraft3/yd_jass_api/AbilityState.cpp b/Development/Editor/Plugin/Warcraft3/yd_jass_api/AbilityState.cpp index 98b74243f..15d31e02d 100644 --- a/Development/Editor/Plugin/Warcraft3/yd_jass_api/AbilityState.cpp +++ b/Development/Editor/Plugin/Warcraft3/yd_jass_api/AbilityState.cpp @@ -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) {