mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 03:39:42 +00:00
Fix two excessive type casting instances
No need to to a string -> char* -> string dance.
This commit is contained in:
parent
df3a47187b
commit
33e035cc95
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ namespace ESM
|
|||
|
||||
void WeatherState::save(ESMWriter& esm) const
|
||||
{
|
||||
esm.writeHNCString(currentRegionRecord, mCurrentRegion.c_str());
|
||||
esm.writeHNCString(currentRegionRecord, mCurrentRegion);
|
||||
esm.writeHNT(timePassedRecord, mTimePassed);
|
||||
esm.writeHNT(fastForwardRecord, mFastForward);
|
||||
esm.writeHNT(weatherUpdateTimeRecord, mWeatherUpdateTime);
|
||||
|
|
|
@ -94,7 +94,7 @@ namespace Resource
|
|||
Files::IStreamPtr stream;
|
||||
try
|
||||
{
|
||||
stream = mVFS->get(normalized.c_str());
|
||||
stream = mVFS->get(normalized);
|
||||
}
|
||||
catch (std::exception& e)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue