diff --git a/code/ryzom/server/src/ai_share/ai_event.h b/code/ryzom/server/src/ai_share/ai_event.h index 267d0f456..c62b1be81 100644 --- a/code/ryzom/server/src/ai_share/ai_event.h +++ b/code/ryzom/server/src/ai_share/ai_event.h @@ -88,7 +88,8 @@ public: const CAIEventType &operator=(const CAIEventType &other) { _val=other._val; - } + return *this; + } bool operator==(const CAIEventType &other) const { return _val==other._val; diff --git a/code/ryzom/tools/client/r2_islands_textures/screenshot_islands.cpp b/code/ryzom/tools/client/r2_islands_textures/screenshot_islands.cpp index 617605399..0cf9686b5 100644 --- a/code/ryzom/tools/client/r2_islands_textures/screenshot_islands.cpp +++ b/code/ryzom/tools/client/r2_islands_textures/screenshot_islands.cpp @@ -844,6 +844,7 @@ void CScreenshotIslands::processProximityBuffer(TBuffer & inputBuffer, uint32 li bool lastValue = false; CVector2f firstPixelBorder; + firstPixelBorder.set(0.f, 0.f); uint32 nbPixelsBorder = 0; for (uint32 x=0;x