Fixed warnings
This commit is contained in:
@@ -248,7 +248,15 @@ bool trpgModel::Read(trpgReadBuffer &buf, bool hasHandle)
|
||||
// TerraPage 2.2 will store the unique handle after the type
|
||||
// we use a different token, so this is backwards compatible.
|
||||
if(hasHandle) {
|
||||
buf.Get((int32 &)handle);
|
||||
int32 tempHandle;
|
||||
if(buf.Get(tempHandle))
|
||||
{
|
||||
handle = tempHandle;
|
||||
}
|
||||
else
|
||||
{
|
||||
handle = -1;
|
||||
}
|
||||
}
|
||||
else
|
||||
handle = -1;
|
||||
|
||||
Reference in New Issue
Block a user