[Download]: Set fs_game dvar to modified

This commit is contained in:
Diavolo 2023-01-09 20:14:12 +01:00
parent 06e7f86a42
commit f4b1c57035
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5

View File

@ -327,6 +327,7 @@ namespace Components
Scheduler::Once([] Scheduler::Once([]
{ {
Game::Dvar_SetString(*Game::fs_gameDirVar, mod.data()); Game::Dvar_SetString(*Game::fs_gameDirVar, mod.data());
const_cast<Game::dvar_t*>((*Game::fs_gameDirVar))->modified = true;
mod.clear(); mod.clear();