Fix Sherbet (#558)

* Update Game.cpp

* Update Penguin.cpp
This commit is contained in:
MegaMech
2025-11-09 20:40:09 -07:00
committed by GitHub
parent de9c5d5101
commit fb7bd7ba11
2 changed files with 8 additions and 3 deletions
+4 -2
View File
@@ -704,8 +704,10 @@ void CM_ActorBeginPlay(struct Actor* actor) {
void CM_ActorGenerateCollision(struct Actor* actor) {
AActor* act = gWorldInstance.ConvertActorToAActor(actor);
if (act->Triangles.size() == 0) {
Editor::GenerateCollisionMesh(act, (Gfx*)LOAD_ASSET_RAW(act->Model), 1.0f);
if ((nullptr != act->Model) && (act->Model[0] != '\0')) {
if (act->Triangles.size() == 0) {
Editor::GenerateCollisionMesh(act, (Gfx*)LOAD_ASSET_RAW(act->Model), 1.0f);
}
}
}