1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 21:40:03 +00:00
elsid a0cfcc50a2
Fix dangling pointer access on clicking save in the main menu
getSignature() returns an object which means expression like:
className = it->getSignature().mPlayerClassName;
assigns a temporary object to className that does not outlive the statement.
Having className a string view such code leads to a dangling pointer.

Return a reference from getSignature to save on redundant copying.

Change getSignature implementation to make it visible that it finds a maximum
element.

Do not call getSignature multiple times when possible to avoid seaching for the
same max element multiple times.
2022-09-15 22:49:20 +02:00
..
2022-08-24 20:38:52 +02:00
2019-09-02 16:49:29 +02:00
2022-08-31 19:03:45 +02:00
2021-08-15 19:50:28 +02:00
2017-09-24 19:08:13 +02:00
2018-10-09 10:21:12 +04:00
2022-08-30 07:54:20 +00:00
2022-09-01 18:25:41 +02:00
2022-07-17 22:01:48 +04:00
2021-08-15 19:50:28 +02:00
2021-08-15 19:50:28 +02:00
2022-08-31 19:03:45 +02:00
2022-08-31 19:03:45 +02:00
2022-08-30 07:54:20 +00:00
2022-06-04 15:26:36 +02:00
2022-02-26 13:54:42 +00:00
2022-08-31 19:05:32 +02:00
2022-04-08 22:42:22 +02:00
2022-08-28 15:06:31 +02:00
2022-06-04 15:26:36 +02:00
2022-02-26 13:54:42 +00:00
2021-04-11 14:46:51 +02:00
2022-06-04 15:26:36 +02:00
2021-10-04 20:47:45 +00:00
2022-09-08 21:08:59 +02:00
2021-08-15 19:50:28 +02:00