Skip to content

Commit 6e15113

Browse files
committed
fix(addons): ReloadMap crash
1 parent e62237f commit 6e15113

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/addons/addons.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ void Addons::ReloadMap()
267267
std::string cmd;
268268

269269
if (this->currentWorkshopMap.empty())
270-
cmd = string_format("changelevel %s", GetGameGlobals()->mapname.ToCStr());
270+
cmd = string_format("changelevel %s", engine->GetServerGlobals()->mapname.ToCStr());
271271
else
272272
cmd = string_format("host_workshop_map %s", currentWorkshopMap.c_str());
273273

0 commit comments

Comments
 (0)