From 117fa61a30ca11bafe170afde0aec51c30247605 Mon Sep 17 00:00:00 2001 From: FeepingCreature Date: Sat, 13 Jun 2020 15:59:46 +0200 Subject: [PATCH] Use initializer list rather than constructor call: only initializer list guarantees left-to-right evaluation. (see C++ spec dcl.init.list #4) --- src/mapbuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapbuffer.cpp b/src/mapbuffer.cpp index ffd5d933512e9..1b5767266c300 100644 --- a/src/mapbuffer.cpp +++ b/src/mapbuffer.cpp @@ -283,7 +283,7 @@ void mapbuffer::deserialize( JsonIn &jsin ) version = jsin.get_int(); } else if( submap_member_name == "coordinates" ) { jsin.start_array(); - tripoint loc( jsin.get_int(), jsin.get_int(), jsin.get_int() ); + tripoint loc{ jsin.get_int(), jsin.get_int(), jsin.get_int() }; jsin.end_array(); submap_coordinates = loc; } else {