Fixed variable assignment values.

pull/185/head
Marcel Metz 2012-03-12 15:50:49 +01:00
parent 846a8959f8
commit c6297ec333
3 changed files with 5 additions and 5 deletions

View File

@ -1183,7 +1183,7 @@ int CDisplay::HandleTreeViewPopup(WPARAM wParam,LPARAM lParam)
{
// get the current selected material
std::vector<Info> apclrOut;
const char* szMatKey;
const char* szMatKey = "";
switch (LOWORD(wParam))
{
@ -1251,7 +1251,7 @@ int CDisplay::HandleTreeViewPopup(WPARAM wParam,LPARAM lParam)
clr.lpCustColors = g_aclCustomColors;
clr.lpfnHook = NULL;
clr.lpTemplateName = NULL;
clr.lCustData = NULL;
clr.lCustData = 0;
ChooseColor(&clr);

View File

@ -61,7 +61,7 @@ int CMeshRenderer::DrawUnsorted(unsigned int iIndex)
g_piDevice->SetIndices(g_pcAsset->apcMeshes[iIndex]->piIB);
D3DPRIMITIVETYPE type;
D3DPRIMITIVETYPE type = D3DPT_POINTLIST;
switch (g_pcAsset->pcScene->mMeshes[iIndex]->mPrimitiveTypes) {
case aiPrimitiveType_POINT:
type = D3DPT_POINTLIST;break;

View File

@ -522,7 +522,7 @@ void DisplayColorDialog(D3DCOLOR* pclrResult)
clr.lpCustColors = g_aclCustomColors;
clr.lpfnHook = NULL;
clr.lpTemplateName = NULL;
clr.lCustData = NULL;
clr.lCustData = 0;
ChooseColor(&clr);
@ -549,7 +549,7 @@ void DisplayColorDialog(D3DXVECTOR4* pclrResult)
clr.lpCustColors = g_aclCustomColors;
clr.lpfnHook = NULL;
clr.lpTemplateName = NULL;
clr.lCustData = NULL;
clr.lCustData = 0;
ChooseColor(&clr);