Skip to content
This repository was archived by the owner on Jul 7, 2022. It is now read-only.

Commit c2f8279

Browse files
committed
fixed crash for missing legacy config
1 parent a3dd518 commit c2f8279

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
v1.11.1
2+
- Fixed crash for first-time users.
13
v1.11
24
- More stable library version.
35
- Fixed incorrect old format additive animations.

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.3)
22

3-
project(HavokMax VERSION 1.11)
3+
project(HavokMax VERSION 1.11.1)
44

55
set (HavokLibLibraryPath ../HavokLib)
66

src/HavokMax.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,11 @@ static void LoadLegacyConfig() {
309309

310310
GetPrivateProfileString(prName_.data(), _T("Scale"), _T(""), &group[0],
311311
(DWORD)group.size(), cfgpath.data());
312+
313+
if (!group[0]) {
314+
return;
315+
}
316+
312317
auto &prData = presets[to_string(prName_)];
313318
prData.scale = std::stof(group);
314319

0 commit comments

Comments
 (0)