diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-03 08:44:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-03 08:44:37 +0300 |
commit | 751782c8df7e49b5612b01715d871775fc09818f (patch) | |
tree | d1146ece32e9b0c8db71bb8b761e5f385c3eeecb /source/blender/editors/undo | |
parent | 495b21fa0cb3d782ff61e53fe583e7f8b2045fbe (diff) |
Correct own error in string lookup
Diffstat (limited to 'source/blender/editors/undo')
-rw-r--r-- | source/blender/editors/undo/memfile_undo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/undo/memfile_undo.c b/source/blender/editors/undo/memfile_undo.c index 756c46b4e8a..5033d741c7b 100644 --- a/source/blender/editors/undo/memfile_undo.c +++ b/source/blender/editors/undo/memfile_undo.c @@ -132,7 +132,7 @@ static void memfile_undosys_step_decode(struct bContext *C, UndoStep *us_p, int { struct Main *bmain = CTX_data_main(C); for (WorkSpaceData *wsd = us->workspace_data.first; wsd != NULL; wsd = wsd->next) { - WorkSpace *workspace = BLI_findstring(&bmain->workspaces, wsd->name, offsetof(ID, name)); + WorkSpace *workspace = BLI_findstring(&bmain->workspaces, wsd->name, offsetof(ID, name) + 2); if (workspace) { workspace->object_mode = wsd->object_mode; workspace->object_mode_restore = wsd->object_mode_restore; |