2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 22:27:43 +00:00

Silence warnings, and fix Windows build

This commit is contained in:
Phillip Stephens
2016-12-21 11:27:15 -08:00
parent c92223301c
commit 598f64002c
13 changed files with 39 additions and 38 deletions

View File

@@ -72,7 +72,7 @@ void CStringTable::LoadStringTable(CInputStream &in)
std::wstring CStringTable::GetString(s32 str) const
{
if (str < 0 || str >= x0_stringCount)
if (str < 0 || u32(str) >= x0_stringCount)
return L"Invalid";
u32 off = *(reinterpret_cast<u32*>(x4_data.get() + str * 4));