Lehks / NostraEngine

A 3D game engine made by students of the htw saar.
MIT License
2 stars 0 forks source link

NOE::NOE_CORE::NostraEngine::getVersion() returns local string #97

Closed Lehks closed 6 years ago

Lehks commented 6 years ago

File: core/NostraEngine.hpp Line: 260

The function getVersion() returns a const String reference and the function definition returns a reference to a local object. However, the function should not return a string object in the first place (a reference to a version instance would be much better).