From d4630b8686f2f481c470cf35a2c19128a24344d4 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 26 Jun 2013 18:57:16 -0700 Subject: Addition is NOT symmetrical, internally --- src/map/script.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/map/script.cpp b/src/map/script.cpp index f719cfe..8957e60 100644 --- a/src/map/script.cpp +++ b/src/map/script.cpp @@ -4234,9 +4234,9 @@ void op_add(ScriptState *st) get_val(st, &st->stack->stack_datav.back()); script_data back = st->stack->stack_datav.back(); st->stack->stack_datav.pop_back(); - get_val(st, &st->stack->stack_datav.back()); + script_data& back1 = st->stack->stack_datav.back(); - st->stack->stack_datav.pop_back(); + get_val(st, &back1); if (!(isstr(back) || isstr(back1))) { @@ -4246,7 +4246,6 @@ void op_add(ScriptState *st) { dumb_string sb = conv_str(st, &back); dumb_string sb1 = conv_str(st, &back1); - // ssの予定 std::string buf = sb1.str() + sb.str(); if (back1.type == ByteCode::STR) back1.u.str.delete_(); -- cgit v1.2.3-70-g09d2