Created
January 8, 2013 05:51
-
-
Save zrax/4481569 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Sources/Plasma/Apps/plClient/plClient.cpp b/Sources/Plasma/Apps/plClient/plClient.cpp | |
index b0e895d..a1dc8e5 100644 | |
--- a/Sources/Plasma/Apps/plClient/plClient.cpp | |
+++ b/Sources/Plasma/Apps/plClient/plClient.cpp | |
@@ -990,7 +990,7 @@ void plClient::SetHoldLoadRequests(bool hold) | |
void plClient::IQueueRoomLoad(const std::vector<plLocation>& locs, bool hold) | |
{ | |
bool allSameAge = true; | |
- const char* lastAgeName = nil; | |
+ plString lastAgeName; | |
uint32_t numRooms = 0; | |
for (int i = 0; i < locs.size(); i++) | |
@@ -1016,7 +1016,7 @@ void plClient::IQueueRoomLoad(const std::vector<plLocation>& locs, bool hold) | |
fLoadRooms.push_back(new LoadRequest(loc, hold)); | |
- if (!lastAgeName || strcmp(info->GetAge(), lastAgeName) == 0) | |
+ if (lastAgeName.IsNull() || info->GetAge() == lastAgeName) | |
lastAgeName = info->GetAge(); | |
else | |
allSameAge = false; | |
diff --git a/Sources/Tools/MaxComponent/plClothingComponent.cpp b/Sources/Tools/MaxComponent/plClothingComponent.cpp | |
index a9d3041..f8552b6 100644 | |
--- a/Sources/Tools/MaxComponent/plClothingComponent.cpp | |
+++ b/Sources/Tools/MaxComponent/plClothingComponent.cpp | |
@@ -233,7 +233,7 @@ bool plClothingComponent::Convert(plMaxNode *node, plErrorMsg *pErrMsg) | |
} | |
const plPageInfo* thisInfo = plKeyFinder::Instance().GetLocationInfo(locationNode ? locationNode->GetLocation() : node->GetLocation()); | |
- const plLocation &loc = plKeyFinder::Instance().FindLocation("GlobalClothing", thisInfo->GetPage()); | |
+ const plLocation &loc = plKeyFinder::Instance().FindLocation("GlobalClothing", thisInfo->GetPage().c_str()); | |
for (i = 0; i < fCompPB->Count(plClothingComponent::kMaterials); i++) | |
{ | |
diff --git a/Sources/Tools/MaxMain/plPluginResManager.cpp b/Sources/Tools/MaxMain/plPluginResManager.cpp | |
index d6f9281..596ef6e 100644 | |
--- a/Sources/Tools/MaxMain/plPluginResManager.cpp | |
+++ b/Sources/Tools/MaxMain/plPluginResManager.cpp | |
@@ -120,12 +120,12 @@ plRegistryPageNode* plPluginResManager::INameToPage(const plString& age, const p | |
if (sequenceNumber != uint32_t(-1)) | |
{ | |
const plLocation& newLoc = ICreateLocation(age, page, sequenceNumber, itinerant); | |
- pageNode = CreatePage(newLoc, age, page); | |
+ pageNode = CreatePage(newLoc, age.c_str(), page.c_str()); | |
} | |
else | |
{ | |
const plLocation& newLoc = ICreateLocation(age, page, itinerant); | |
- pageNode = CreatePage(newLoc, age, page); | |
+ pageNode = CreatePage(newLoc, age.c_str(), page.c_str()); | |
} | |
// Still preload textures on this guy. This should be a no-op for this page since it's new, but won't be | |
// for the shared textures page |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment