Skip to content

Commit 8c4293a

Browse files
committed
Holy shit this codebase is so fucking bad
1 parent 89eff7c commit 8c4293a

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

Entities/Scene.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2342,7 +2342,7 @@ Scene::Area * Scene::GetArea(const std::string_view &areaName, bool required) {
23422342
}
23432343

23442344
if (required) {
2345-
g_ConsoleMan.PrintString("WARNING: Could not find the requested Scene Area named : " + areaName.data());
2345+
g_ConsoleMan.PrintString("WARNING: Could not find the requested Scene Area named : " + std::string(areaName));
23462346
}
23472347

23482348
return nullptr;

Entities/Scene.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -937,13 +937,6 @@ const SceneObject * PickPlacedActorInRange(int whichSet, Vector &scenePoint, int
937937
/// <returns>A pointer to the Area asked for, or nullptr if no Area of that name was found.</returns>
938938
Area * GetArea(const std::string_view &areaName, bool required = false);
939939

940-
/// <summary>
941-
/// Gets a specified Area identified by name, showing a Lua error if it's not found. Ownership is NOT transferred!
942-
/// </summary>
943-
/// <param name="areaName">The name of the Area to try to get.</param>
944-
/// <returns>A pointer to the Area asked for, or nullptr if no Area of that name was found.</returns>
945-
Area * GetArea(const std::string &areaName) { return GetArea(areaName, false); }
946-
947940
/// <summary>
948941
/// Gets a specified Area identified by name, showing a Lua warning if it's not found. Ownership is NOT transferred!
949942
/// Using this function will not add the area to the list of required areas which Scenario GUI uses to show compatible areas.

0 commit comments

Comments
 (0)