From 6fe744f2c139988232b6c09e0fd2a9bfe00f2d61 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 31 Mar 2018 18:01:14 +0900 Subject: [PATCH] =?UTF-8?q?meekroDB=20=EB=B2=84=EA=B7=B8=EB=A1=9C=20?= =?UTF-8?q?=EC=9A=B0=ED=9A=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twe/sammo/Scenario.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/twe/sammo/Scenario.php b/twe/sammo/Scenario.php index 56cb3f77..ca7a8830 100644 --- a/twe/sammo/Scenario.php +++ b/twe/sammo/Scenario.php @@ -312,11 +312,8 @@ class Scenario{ list($me, $you, $state, $remain) = $diplomacy; $db->update('diplomacy', [ 'state'=>$state, - 'remain'=>$remain - ], '(me = %i_me AND you = %i_you) OR (me = %i_you AND you = %i_me)', [ - 'me'=>$me, - 'you'=>$you - ]); + 'term'=>$remain + ], '(me = %i AND you = %i) OR (me = %i AND you = %i)', $me, $you, $you, $me); } }