diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 2f67915ce5..c21b492c8f 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -925,7 +925,7 @@ Session::load_state (string snapshot_name) /* no version implies very old version of Ardour */ Stateful::loading_state_version = 1000; } else { - if (prop->value().find ('.')) { + if (prop->value().find ('.') != string::npos) { /* old school version format */ if (prop->value()[0] == '2') { Stateful::loading_state_version = 2000;