mirror of https://github.com/rusefi/rusefi.git
Map3D should not be silently return 0 if not initialized fix #6461
This commit is contained in:
parent
a3a492d46f
commit
16a4144098
|
@ -49,10 +49,7 @@ public:
|
|||
// RPM is usually X/Column
|
||||
float getValue(float xColumn, float yRow) const final {
|
||||
if (!m_values) {
|
||||
#if EFI_UNIT_TEST
|
||||
throw std::runtime_error("Access to uninitialized table");
|
||||
#endif
|
||||
// not initialized, return 0
|
||||
criticalError("Access to uninitialized table: %s", m_name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue