rw stuff done & other small things

This commit is contained in:
aap
2020-08-20 12:53:17 +02:00
parent 30dadcfb22
commit 764af8735c
15 changed files with 99 additions and 68 deletions

View File

@@ -50,8 +50,8 @@ NodeNameStreamWrite(RwStream *stream, RwInt32 binaryLength, const void *object,
RwInt32
NodeNameStreamGetSize(const void *object, RwInt32 offsetInObject, RwInt32 sizeInObject)
{
// game checks for null pointer on node name extension but that really happen
return (RwInt32)rwstrlen(NODENAMEEXT(object));
char *name = NODENAMEEXT(object); // can't be nil
return name ? (RwInt32)rwstrlen(name) : 0;
}
bool