26 lines
843 B
Diff
26 lines
843 B
Diff
From e07fcbfc8f1be46712ce5a3271334b63494ac3d3 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Ricardo=20Lu=C3=ADs=20Vaz=20Silva?= <ricolvs123@gmail.com>
|
|
Date: Sun, 4 Dec 2022 17:21:09 -0300
|
|
Subject: [PATCH 02/51] Fix PMapValueReader warning on Clang/GCC
|
|
|
|
---
|
|
src/common/scripting/core/types.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/common/scripting/core/types.cpp b/src/common/scripting/core/types.cpp
|
|
index 702277e89..3054335ac 100644
|
|
--- a/src/common/scripting/core/types.cpp
|
|
+++ b/src/common/scripting/core/types.cpp
|
|
@@ -2603,7 +2603,7 @@ template<typename M>
|
|
static bool PMapValueReader(FSerializer &ar, M *map, const PMap *m)
|
|
{
|
|
const char * k;
|
|
- while(k = ar.GetKey())
|
|
+ while((k = ar.GetKey()))
|
|
{
|
|
typename M::ValueType * val;
|
|
if constexpr(std::is_same_v<typename M::KeyType,FString>)
|
|
--
|
|
2.39.3
|
|
|